-
Notifications
You must be signed in to change notification settings - Fork 69
/
com.valvesoftware.Steam.yml
251 lines (230 loc) · 8.16 KB
/
com.valvesoftware.Steam.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
id: com.valvesoftware.Steam
runtime: org.freedesktop.Platform
runtime-version: &runtime-version '24.08'
x-gl-version: &gl-version '1.4'
x-gl-versions: &gl-versions 24.08;24.08-extra;1.4
x-gl-merge-dirs: &gl-merge-dirs vulkan/icd.d;glvnd/egl_vendor.d;egl/egl_external_platform.d;OpenCL/vendors;lib/dri;lib/d3d;lib/gbm;vulkan/explicit_layer.d;vulkan/implicit_layer.d
sdk: org.freedesktop.Sdk
command: steam
separate-locales: false
rename-icon: steam
rename-desktop-file: steam.desktop
tags:
- proprietary
sdk-extensions:
- org.freedesktop.Sdk.Compat.i386
- org.freedesktop.Sdk.Extension.toolchain-i386
finish-args:
- --share=ipc
- --socket=wayland
- --socket=x11
- --socket=pulseaudio
- --share=network
- --own-name=com.steampowered.*
- --talk-name=org.gnome.SettingsDaemon.MediaKeys
# Wine uses UDisks2 to enumerate disk drives
- --system-talk-name=org.freedesktop.UDisks2
- --talk-name=org.kde.StatusNotifierWatcher
- --system-talk-name=org.freedesktop.UPower
- --talk-name=org.freedesktop.ScreenSaver
- --talk-name=org.freedesktop.PowerManagement
- --talk-name=org.freedesktop.Notifications
- --filesystem=xdg-music:ro
- --filesystem=xdg-pictures:ro
- --filesystem=xdg-run/app/com.discordapp.Discord:create
- --device=all
- --allow=multiarch
- --allow=devel
- --allow=bluetooth
- --allow=per-app-dev-shm
- --persist=.
- --env=TZ=
- --unset-env=TZ
- --env=LC_ADDRESS=C
- --env=LC_COLLATE=C
- --env=LC_MONETARY=C
- --env=LC_MEASUREMENT=C
- --env=LC_NAME=C
- --env=LC_NUMERIC=C
- --env=LC_TELEPHONE=C
- --env=ALSA_CONFIG_PATH=
- --unset-env=ALSA_CONFIG_PATH
- --env=MESA_GLSL_CACHE_DIR=
- --unset-env=MESA_GLSL_CACHE_DIR
- --env=STEAM_RUNTIME_PREFER_HOST_LIBRARIES=
- --unset-env=STEAM_RUNTIME_PREFER_HOST_LIBRARIES
- --env=STEAM_RUNTIME=
- --unset-env=STEAM_RUNTIME
- --env=FLATPAK_STEAM_XDG_DIRS_PREFIX=~/.var/app/com.valvesoftware.Steam
- --env=FLATPAK_STEAM_UPDATE_SYMLINKS=0
- --env=SDL_VIDEODRIVER=
- --unset-env=SDL_VIDEODRIVER
- --env=DBUS_FATAL_WARNINGS=0
- --env=SSL_CERT_DIR=/etc/ssl/certs
- --env=STEAM_EXTRA_COMPAT_TOOLS_PATHS=/app/share/steam/compatibilitytools.d:/app/utils/share/steam/compatibilitytools.d
- --env=PATH=/app/bin:/app/utils/bin:/usr/bin
- --env=PYTHONPATH=/app/utils/lib/python3.10/site-packages
- --env=PROTON_DEBUG_DIR=/var/tmp
- --env=XDG_CONFIG_DIRS=/etc/xdg:/usr/lib/x86_64-linux-gnu/GL:/usr/lib/i386-linux-gnu/GL
- --env=XDG_DATA_DIRS=/app/share:/usr/lib/extensions/vulkan/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share:/usr/lib/pressure-vessel/overrides/share
- --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
- --require-version=1.12.0
add-extensions:
org.freedesktop.Platform.Compat.i386:
directory: lib/i386-linux-gnu
version: *runtime-version
org.freedesktop.Platform.Compat.i386.Debug:
directory: lib/debug/lib/i386-linux-gnu
version: *runtime-version
no-autodownload: true
org.freedesktop.Platform.GL32:
directory: lib/i386-linux-gnu/GL
version: *gl-version
versions: *gl-versions
subdirectories: true
no-autodownload: true
autodelete: false
add-ld-path: lib
merge-dirs: *gl-merge-dirs
download-if: active-gl-driver
enable-if: active-gl-driver
autoprune-unless: active-gl-driver
org.freedesktop.Platform.GL32.Debug:
directory: lib/debug/lib/i386-linux-gnu/GL
version: *gl-version
versions: *gl-versions
subdirectories: true
no-autodownload: true
merge-dirs: *gl-merge-dirs
enable-if: active-gl-driver
autoprune-unless: active-gl-driver
org.freedesktop.Platform.VAAPI.Intel.i386:
directory: lib/i386-linux-gnu/dri/intel-vaapi-driver
version: *runtime-version
versions: *runtime-version
autodelete: false
no-autodownload: true
add-ld-path: lib
download-if: have-intel-gpu
autoprune-unless: have-intel-gpu
org.freedesktop.Platform.ffmpeg-full:
directory: lib/ffmpeg
add-ld-path: .
version: *runtime-version
no-autodownload: true
autodelete: false
org.freedesktop.Platform.ffmpeg_full.i386:
directory: lib32/ffmpeg
add-ld-path: .
version: *runtime-version
no-autodownload: true
autodelete: false
com.valvesoftware.Steam.CompatibilityTool:
subdirectories: true
directory: share/steam/compatibilitytools.d
version: stable
versions: stable;beta;test
no-autodownload: true
autodelete: true
com.valvesoftware.Steam.Utility:
subdirectories: true
directory: utils
version: stable
versions: stable;beta;test
add-ld-path: lib
merge-dirs: bin;lib/python3.10/site-packages;share/vulkan/explicit_layer.d;share/vulkan/implicit_layer.d;share/steam/compatibilitytools.d;
no-autodownload: true
autodelete: true
cleanup:
- /lib/*.a
- /lib/*.la
- /lib32/*.a
- /lib32/*.la
- /share/doc
- /share/gtk-doc
- /share/man
cleanup-commands:
- python3 -m compileall --invalidation-mode=unchecked-hash /app
modules:
- modules.yml
- modules-32bit.yml
- python3-requirements.json
- name: steam_wrapper
buildsystem: simple
sources:
- type: dir
path: steam_wrapper
build-commands:
- python3 -mpip install . --prefix=/app --no-index --find-links .
- name: steam
buildsystem: simple
build-commands:
- |
set -e
sed -i s:/usr/bin/steam:/app/bin/steam: steam.desktop
desktop-file-edit --remove-key=PrefersNonDefaultGPU steam.desktop
desktop-file-edit --remove-key=X-KDE-RunOnDiscreteGpu steam.desktop
desktop-file-edit --set-key=StartupWMClass --set-value=Steam steam.desktop
sed -i s:/usr/lib/:/app/lib/: steam
PREFIX=/app make install
ln -sf /bin/true /app/bin/steamdeps
cp /usr/bin/cmp /app/bin
install -Dm644 -t /app/share/metainfo com.valvesoftware.Steam.metainfo.xml
ln -sf steam-wrapper /app/bin/steam
test -x /app/lib/steam/bin_steam.sh
sources:
- type: archive
url: https://repo.steampowered.com/steam/archive/stable/steam_1.0.0.81.tar.gz
sha256: 1a26b9d7cdace09e04dc86b511e0b9923257f664a5b6cafe6fed5e46d117b4f9
x-checker-data:
type: html
is-main-source: true
url: https://repo.steampowered.com/steam/archive/stable/
pattern: (steam_([\d.-]+).tar.gz)
- type: file
path: com.valvesoftware.Steam.metainfo.xml
- name: steamcmd
build-options:
strip: false
no-debuginfo: true
buildsystem: simple
build-commands:
- |
set -e
cp -ax steamcmd /app/
ln -s steamcmd-wrapper /app/bin/steamcmd
install -Dm644 com.valvesoftware.Steam.cmd.metainfo.xml -t /app/share/metainfo
sources:
- type: archive
strip-components: 0
dest: steamcmd
url: https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
sha256: cebf0046bfd08cf45da6bc094ae47aa39ebf4155e5ede41373b579b8f1071e7c
- type: file
path: com.valvesoftware.Steam.cmd.metainfo.xml
- name: platform-bootstrap
buildsystem: simple
build-commands:
- |
set -e
mkdir -p /app/bin
mkdir -p /app/lib/i386-linux-gnu
mkdir -p /app/lib/i386-linux-gnu/GL
mkdir -p /app/lib/i386-linux-gnu/dri/intel-vaapi-driver
mkdir -p /app/lib/debug/lib/i386-linux-gnu
mkdir -p /app/lib/debug/lib/i386-linux-gnu/GL
cp /usr/bin/addr2line /app/bin/
cp /usr/lib/x86_64-linux-gnu/libbfd-*.so /app/lib/
install -Dm644 -t /app/etc ld.so.conf
shared-library-guard-config-converter blocklist/* --outfile /app/etc/freedesktop-sdk.ld.so.blockedlist
mkdir -p /app/lib{,32}/ffmpeg
mkdir -p /app/share/steam/compatibilitytools.d
mkdir -p /app/utils /app/share/vulkan
ln -srv /app/{utils/,}share/vulkan/explicit_layer.d
ln -srv /app/{utils/,}share/vulkan/implicit_layer.d
mkdir -p /app/links/lib
ln -srv /app/lib /app/links/lib/x86_64-linux-gnu
ln -srv /app/lib32 /app/links/lib/i386-linux-gnu
sources:
- type: dir
path: resources