forked from flathub/com.valvesoftware.Steam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.valvesoftware.Steam.yml
238 lines (218 loc) · 7.71 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
app-id: com.valvesoftware.Steam
runtime: org.freedesktop.Platform
runtime-version: &runtime-version '22.08'
x-gl-version: &gl-version '1.4'
x-gl-versions: &gl-versions 22.08;1.4
sdk: org.freedesktop.Sdk
command: steam-wrapper
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
- --talk-name=org.gnome.SettingsDaemon.MediaKeys
# Steam in -steamos mode uses Network Manager for network settings, e.g.
# connecting to wifi and so on.
# In normal mode, it probably just gets info about current connection status.
- --system-talk-name=org.freedesktop.NetworkManager
# 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
- --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.0.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: vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d
download-if: active-gl-driver
enable-if: 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:Exec=steam:Exec=/app/bin/steam-wrapper: steam.desktop
sed -i s:/usr/bin/steam:/app/bin/steam-wrapper: 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
sources:
- type: archive
url: https://repo.steampowered.com/steam/archive/stable/steam_1.0.0.75.tar.gz
sha256: e52565a5e33b9a4184c5bdc222978b7fea958efd32641d5d5967774d751236a7
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/debug/lib/i386-linux-gnu
mkdir -p /app/lib/i386-linux-gnu/GL
mkdir -p /app/lib/i386-linux-gnu/dri/intel-vaapi-driver
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