1+ id : com.heroicgameslauncher.hgl
2+ sdk : org.freedesktop.Sdk
3+ runtime : org.freedesktop.Platform
4+ runtime-version : ' 21.08'
5+ base : org.electronjs.Electron2.BaseApp
6+ base-version : ' 21.08'
7+ command : heroic-run
8+ separate-locales : false
9+
10+ sdk-extensions :
11+ - org.freedesktop.Sdk.Compat.i386
12+ - org.freedesktop.Sdk.Extension.toolchain-i386
13+
14+ finish-args :
15+ - --share=ipc
16+ - --share=network
17+ - --socket=x11
18+ - --socket=wayland
19+ - --socket=pulseaudio
20+ - --allow=multiarch
21+ - --allow=devel
22+ - --device=all
23+ - --talk-name=org.freedesktop.Notifications
24+ - --persist=.wine
25+ - --filesystem=home
26+ - --filesystem=xdg-data/Steam:ro
27+ - --filesystem=~/.var/app/com.valvesoftware.Steam:ro
28+ - --require-version=1.1.2
29+ - --env=XDG_CONFIG_DIRS=/etc/xdg:/usr/lib/x86_64-linux-gnu/GL:/usr/lib/i386-linux-gnu/GL
30+ - --env=GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0:/app/lib32/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0:/usr/lib/i386-linux-gnu/gstreamer-1.0
31+
32+ add-extensions :
33+ org.freedesktop.Platform.Compat.i386 :
34+ directory : lib/i386-linux-gnu
35+ version : ' 21.08'
36+
37+ org.freedesktop.Platform.Compat.i386.Debug :
38+ directory : lib/debug/lib/i386-linux-gnu
39+ version : ' 21.08'
40+ no-autodownload : true
41+
42+ org.freedesktop.Platform.GL32 :
43+ directory : lib/i386-linux-gnu/GL
44+ version : ' 1.4'
45+ versions : 21.08;1.4
46+ subdirectories : true
47+ no-autodownload : true
48+ autodelete : false
49+ add-ld-path : lib
50+ merge-dirs : vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d
51+ download-if : active-gl-driver
52+ enable-if : active-gl-driver
53+
54+ modules :
55+
56+ # --- Tools ---
57+ - name : unappimage
58+ buildsystem : simple
59+ build-commands :
60+ - make -C squashfs-tools -j ${FLATPAK_BUILDER_N_JOBS} install INSTALL_DIR=/app/bin
61+ sources :
62+ - type : git
63+ url : https://github.com/refi64/unappimage
64+ commit : d7f86f2a0d7ec3a69211125207d5f127386b849a
65+
66+ - name : vulkan-tools
67+ buildsystem : cmake-ninja
68+ config-opts :
69+ - -DGLSLANG_INSTALL_DIR=/app
70+ - -DVULKAN_HEADERS_INSTALL_DIR=/app
71+ - -DCMAKE_BUILD_TYPE=Release
72+ sources :
73+ - type : archive
74+ url : https://github.com/KhronosGroup/Vulkan-Tools/archive/refs/tags/v1.2.186.tar.gz
75+ sha256 : 8ba0e21e8de0b70d31985d251d11150efee71266875262798784e9d1ec9b717b
76+
77+ - name : gamemode
78+ buildsystem : meson
79+ config-opts : &gamemode_opts
80+ - -Dwith-systemd=false
81+ - -Dwith-daemon=false
82+ - -Dwith-examples=false
83+ - -Dwith-util=false
84+ - -Dwith-sd-bus-provider=no-daemon
85+ sources : &gamemode_sources
86+ - type : archive
87+ url : https://github.com/FeralInteractive/gamemode/releases/download/1.6.1/gamemode-1.6.1.tar.xz
88+ sha256 : 10c2a3f142eae472f5a09e42616e38c666c05b25ca3e61e562a543bb3fda66c5
89+
90+ - name : gamemode-32bit
91+ build-options :
92+ arch :
93+ x86_64 : &compat_i386_opts
94+ buildsystem : meson
95+ config-opts : *gamemode_opts
96+ sources : *gamemode_sources
97+
98+ - name : gamemoderun
99+ buildsystem : simple
100+ build-commands :
101+ - install -Dm755 data/gamemoderun -t /app/bin
102+ sources : *gamemode_sources
103+
104+ # --- Heroic ---
105+ - name : heroic
106+ buildsystem : simple
107+ build-commands :
108+ - unappimage Heroic-2.2.1.AppImage
109+ - rm Heroic-2.2.1.AppImage
110+ - mv squashfs-root /app/bin/heroic
111+ - install -D heroic-run -t /app/bin
112+ sources :
113+ - type : script
114+ dest-filename : heroic-run
115+ commands :
116+ - zypak-wrapper /app/bin/heroic/heroic "$@"
117+
118+ - type : file
119+ filename : Heroic-2.2.1.AppImage
120+ url : https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases/download/v2.2.1/Heroic-2.2.1.AppImage
121+ sha256 : cf3c5fdde3357d459356dcf3001730966a6d36e09541a7efa2d9db3a20b3bb47
122+
123+ - name : platform-bootstrap
124+ buildsystem : simple
125+ build-commands :
126+ - |
127+ set -e
128+ mkdir -p /app/bin
129+ mkdir -p /app/lib/i386-linux-gnu
130+ mkdir -p /app/lib/debug/lib/i386-linux-gnu
131+ mkdir -p /app/lib/i386-linux-gnu/GL
132+ mkdir -p /app/lib/i386-linux-gnu/dri/intel-vaapi-driver
133+ cp /usr/bin/addr2line /app/bin/
134+ cp /usr/lib/x86_64-linux-gnu/libbfd-*.so /app/lib/
135+ install -Dm644 -t /app/etc ld.so.conf
136+ mkdir -p /app/lib{,32}/ffmpeg
137+ mkdir -p /app/utils /app/share/vulkan
138+ ln -srv /app/{utils/,}share/vulkan/explicit_layer.d
139+ ln -srv /app/{utils/,}share/vulkan/implicit_layer.d
140+ mkdir -p /app/links/lib
141+ ln -srv /app/lib /app/links/lib/x86_64-linux-gnu
142+ ln -srv /app/lib32 /app/links/lib/i386-linux-gnu
143+ sources :
144+ - type : file
145+ path : ld.so.conf
0 commit comments