1
1
id : com.heroicgameslauncher.hgl
2
2
sdk : org.freedesktop.Sdk
3
3
runtime : org.freedesktop.Platform
4
- runtime-version : ' 21 .08'
4
+ runtime-version : ' 22 .08'
5
5
base : org.electronjs.Electron2.BaseApp
6
- base-version : ' 21 .08'
6
+ base-version : ' 22 .08'
7
7
command : heroic-run
8
8
separate-locales : false
9
9
10
+ cleanup :
11
+ - /share/docs
12
+ - /share/man
13
+
10
14
sdk-extensions :
11
15
- org.freedesktop.Sdk.Compat.i386
12
16
- org.freedesktop.Sdk.Extension.toolchain-i386
13
-
17
+
14
18
finish-args :
19
+ - --allow=devel
20
+ - --allow=multiarch
21
+ - --device=all
22
+ - --env=PATH=/app/bin:/app/utils/bin:/usr/bin:/usr/lib/extensions/vulkan/MangoHud/bin:/app/bin/heroic/resources/app.asar.unpacked/build/bin/linux
23
+ - --filesystem=xdg-data/lutris:rw
24
+ - --filesystem=xdg-data/Steam:rw
25
+ - --filesystem=xdg-data/applications:rw
26
+ - --filesystem=~/.steam:rw
27
+ - --filesystem=~/Games/Heroic:create
28
+ - --filesystem=~/.var/app/com.valvesoftware.Steam:rw
29
+ - --filesystem=xdg-documents
30
+ - --filesystem=xdg-desktop
31
+ # should fix access to SD card on the deck
32
+ - --filesystem=/run/media
33
+ # should fix steamdeck controler navigation
34
+ - --filesystem=/run/udev:ro
15
35
- --share=ipc
16
36
- --share=network
17
37
- --socket=x11
18
38
- --socket=wayland
19
39
- --socket=pulseaudio
20
- - --allow=multiarch
21
- - --allow=devel
22
- - --device=all
23
40
- --talk-name=org.freedesktop.Notifications
24
- - --persist=.wine
25
- - --filesystem=host
26
- - --env=LD_LIBRARY_PATH=/app/lib:/app/lib32
27
- - --env=PATH=/app/bin:/app/utils/bin:/usr/bin:/usr/lib/extensions/vulkan/MangoHud/bin/
28
- - --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
29
-
30
41
31
42
add-extensions :
32
43
org.freedesktop.Platform.Compat.i386 :
33
44
directory : lib/i386-linux-gnu
34
- version : ' 21 .08'
45
+ version : ' 22 .08'
35
46
36
47
org.freedesktop.Platform.Compat.i386.Debug :
37
48
directory : lib/debug/lib/i386-linux-gnu
38
- version : ' 21 .08'
49
+ version : ' 22 .08'
39
50
no-autodownload : true
40
51
41
52
org.freedesktop.Platform.GL32 :
42
53
directory : lib/i386-linux-gnu/GL
43
54
version : ' 1.4'
44
- versions : 21 .08;1.4
55
+ versions : 22 .08;1.4
45
56
subdirectories : true
46
57
no-autodownload : true
47
58
autodelete : false
48
59
add-ld-path : lib
49
60
merge-dirs : vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d
50
61
download-if : active-gl-driver
51
62
enable-if : active-gl-driver
63
+
64
+ x-compat-i386-opts : &compat_i386_opts
65
+ prepend-pkg-config-path : /app/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig
66
+ ldflags : -L/app/lib32
67
+ append-path : /usr/lib/sdk/toolchain-i386/bin
68
+ env :
69
+ CC : i686-unknown-linux-gnu-gcc
70
+ CXX : i686-unknown-linux-gnu-g++
71
+ libdir : /app/lib32
72
+
73
+ org.freedesktop.Platform.VAAPI.Intel.i386 :
74
+ directory : lib/i386-linux-gnu/dri/intel-vaapi-driver
75
+ version : ' 22.08'
76
+ versions : ' 22.08'
77
+ autodelete : false
78
+ no-autodownload : true
79
+ add-ld-path : lib
80
+ download-if : have-intel-gpu
81
+ autoprune-unless : have-intel-gpu
52
82
53
83
com.valvesoftware.Steam.Utility :
54
- subdirectories : true
84
+ subdirectories : true
55
85
directory : utils
56
86
version : stable
57
87
versions : stable;beta;test
58
88
add-ld-path : lib
59
89
merge-dirs : bin
60
90
no-autodownload : true
61
91
autodelete : true
62
-
63
- org.freedesktop.Platform.ffmpeg-full :
64
- directory : lib/ffmpeg
65
- add-ld-path : .
66
- version : ' 21.08'
67
- no-autodownload : true
68
- autodelete : false
69
-
70
- org.freedesktop.Platform.ffmpeg_full.i386 :
71
- directory : lib32/ffmpeg
72
- add-ld-path : .
73
- version : ' 21.08'
74
- no-autodownload : true
75
- autodelete : false
76
-
77
- org.freedesktop.Platform.VAAPI.Intel.i386 :
78
- directory : lib/i386-linux-gnu/dri/intel-vaapi-driver
79
- version : ' 21.08'
80
- versions : ' 21.08'
81
- autodelete : false
82
- no-autodownload : true
83
- add-ld-path : lib
84
- download-if : have-intel-gpu
85
- autoprune-unless : have-intel-gpu
86
92
87
93
modules :
88
- - name : unappimage
89
- buildsystem : simple
90
- build-commands :
91
- - make -C squashfs-tools -j ${FLATPAK_BUILDER_N_JOBS} install INSTALL_DIR=/app/bin
92
- sources :
93
- - type : git
94
- url : https://github.com/refi64/unappimage
95
- commit : d7f86f2a0d7ec3a69211125207d5f127386b849a
96
-
94
+ # --- Tools ---
97
95
- name : vulkan-tools
98
96
buildsystem : cmake-ninja
99
97
config-opts :
100
98
- -DGLSLANG_INSTALL_DIR=/app
101
99
- -DVULKAN_HEADERS_INSTALL_DIR=/app
102
100
- -DCMAKE_BUILD_TYPE=Release
103
101
sources :
104
- - type : archive
105
- url : https://github.com/KhronosGroup/Vulkan-Tools/archive/refs/tags/v1.2.186.tar.gz
106
- sha256 : 8ba0e21e8de0b70d31985d251d11150efee71266875262798784e9d1ec9b717b
102
+ - type : git
103
+ url : https://github.com/KhronosGroup/Vulkan-Tools.git
104
+ tag : sdk-1.3.224.1
107
105
108
106
- name : gamemode
109
107
buildsystem : meson
110
108
config-opts : &gamemode_opts
111
- - -Dwith-systemd=false
112
- - -Dwith-daemon=false
113
109
- -Dwith-examples=false
114
110
- -Dwith-util=false
115
111
- -Dwith-sd-bus-provider=no-daemon
116
112
sources : &gamemode_sources
117
- - type : archive
118
- url : https://github.com/FeralInteractive/gamemode/releases/download/1.6.1/gamemode-1.6.1.tar.xz
119
- sha256 : 10c2a3f142eae472f5a09e42616e38c666c05b25ca3e61e562a543bb3fda66c5
113
+ - type : git
114
+ url : https://github.com/FeralInteractive/gamemode.git
115
+ tag : ' 1.7'
116
+ commit : 4dc99dff76218718763a6b07fc1900fa6d1dafd9
117
+ x-checker-data :
118
+ type : git
120
119
121
120
- name : gamemode-32bit
122
121
build-options :
123
122
arch :
124
- x86_64 : & compat_i386_opts
123
+ x86_64 : * compat_i386_opts
125
124
buildsystem : meson
126
125
config-opts : *gamemode_opts
127
126
sources : *gamemode_sources
@@ -132,23 +131,25 @@ modules:
132
131
- install -Dm755 data/gamemoderun -t /app/bin
133
132
sources : *gamemode_sources
134
133
134
+ # --- Heroic ---
135
135
- name : heroic
136
136
buildsystem : simple
137
137
build-commands :
138
- - unappimage Heroic-2.4.0 .AppImage
139
- - rm Heroic-2.4.0. AppImage
138
+ - chmod +x Heroic-* .AppImage
139
+ - ./ Heroic-*. AppImage --appimage-extract
140
140
- mv squashfs-root /app/bin/heroic
141
141
- install -D heroic-run -t /app/bin
142
+ - rm Heroic-2.5.0-beta.1.AppImage
142
143
sources :
143
144
- type : script
144
145
dest-filename : heroic-run
145
146
commands :
146
147
- zypak-wrapper /app/bin/heroic/heroic "$@"
147
148
148
149
- type : file
149
- filename : Heroic-2.4.0 .AppImage
150
+ filename : Heroic-2.5.0-beta.1 .AppImage
150
151
# put right path here
151
- path : ../dist/Heroic-2.4.0 .AppImage
152
+ path : ../dist/Heroic-2.5.0-beta.1 .AppImage
152
153
153
154
- name : platform-bootstrap
154
155
buildsystem : simple
@@ -180,49 +181,6 @@ modules:
180
181
- type : file
181
182
path : com.heroicgameslauncher.hgl.desktop
182
183
183
- - name : p7zip
184
- no-autogen : true
185
- build-options :
186
- strip : true
187
- make-args :
188
- - all2
189
- - OPTFLAGS=-O2 -g -std=gnu++14
190
- - DEST_HOME=$(FLATPAK_DEST)
191
- - DEST_BIN=$(FLATPAK_DEST)/bin
192
- - DEST_SHARE=$(FLATPAK_DEST)/lib/p7zip
193
- - DEST_MAN=$(FLATPAK_DEST)/share/man
194
- make-install-args :
195
- - DEST_HOME=$(FLATPAK_DEST)
196
- - DEST_BIN=$(FLATPAK_DEST)/bin
197
- - DEST_SHARE=$(FLATPAK_DEST)/lib/p7zip
198
- - DEST_MAN=$(FLATPAK_DEST)/share/man
199
- sources :
200
- - type : archive
201
- url : " https://downloads.sourceforge.net/p7zip/p7zip_16.02_src_all.tar.bz2"
202
- sha256 : 5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f
203
- - type : patch
204
- paths :
205
- - patches/p7zip/gcc10-conversion.patch
206
- - type : shell
207
- only-arches :
208
- - " x86_64"
209
- commands :
210
- - ln -sf makefile.linux_amd64_asm makefile.machine
211
- - type : shell
212
- only-arches :
213
- - " i386"
214
- commands :
215
- - ln -sf makefile.linux_x86_asm_gcc_4.X makefile.machine
216
- modules :
217
- - name : yasm
218
- buildsystem : cmake-ninja
219
- sources :
220
- - type : archive
221
- url : " https://github.com/yasm/yasm/archive/v1.3.0.tar.gz"
222
- sha256 : f708be0b7b8c59bc1dbe7134153cd2f31faeebaa8eec48676c10f972a1f13df3
223
- cleanup :
224
- - " *"
225
-
226
184
- name : cabextract
227
185
build-options :
228
186
strip : true
@@ -231,17 +189,6 @@ modules:
231
189
url : " https://www.cabextract.org.uk/cabextract-1.9.1.tar.gz"
232
190
sha256 : afc253673c8ef316b4d5c29cc4aa8445844bee14afffbe092ee9469405851ca7
233
191
234
- - name : unrar
235
- no-autogen : true
236
- build-options :
237
- strip : true
238
- make-install-args :
239
- - DESTDIR=$(FLATPAK_DEST)
240
- sources :
241
- - type : archive
242
- url : " https://www.rarlab.com/rar/unrarsrc-5.8.3.tar.gz"
243
- sha256 : 3591685c8f5bbcb0be09de3d0a0544adb88966b9cccb80986f6cd2b534fd91a6
244
-
245
192
- name : binutils-ar
246
193
buildsystem : simple
247
194
build-options :
@@ -250,46 +197,6 @@ modules:
250
197
- install -Dm755 /usr/bin/ar -t ${FLATPAK_DEST}/bin/
251
198
- install -Dm755 /usr/lib/$(gcc -print-multiarch)/libbfd-*.so -t ${FLATPAK_DEST}/lib/
252
199
253
- - name : perl
254
- no-autogen : true
255
- config-opts :
256
- - " -des"
257
- cleanup :
258
- - " *.pod"
259
- - " /bin/perl5*"
260
- - " /bin/c2ph"
261
- - " /bin/corelist"
262
- - " /bin/cpan"
263
- - " /bin/enc2xs"
264
- - " /bin/encguess"
265
- - " /bin/h2*"
266
- - " /bin/instmodsh"
267
- - " /bin/json_pp"
268
- - " /bin/libnetcfg"
269
- - " /bin/perlbug"
270
- - " /bin/perldoc"
271
- - " /bin/perlthanks"
272
- - " /bin/piconv"
273
- - " /bin/pl2pm"
274
- - " /bin/pod*"
275
- - " /bin/prove"
276
- - " /bin/pstruct"
277
- - " /bin/ptar*"
278
- - " /bin/shasum"
279
- - " /bin/splain"
280
- - " /bin/xsubpp"
281
- - " /bin/zipdetails"
282
- sources :
283
- - type : archive
284
- url : " https://www.cpan.org/src/5.0/perl-5.32.0.tar.gz"
285
- sha256 : efeb1ce1f10824190ad1cadbcccf6fdb8a5d37007d0100d2d9ae5f2b5900c0b4
286
- - type : script
287
- dest-filename : configure
288
- commands :
289
- - " exec ./configure.gnu $@"
290
- post-install :
291
- - " find ${FLATPAK_DEST}/lib/perl5 -type f -exec chmod u+w {} \\ ;"
292
-
293
200
- name : aria2
294
201
config-opts :
295
202
- --disable-libaria2
0 commit comments