-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnet.brinkervii.grapejuice.yml
247 lines (234 loc) · 9.77 KB
/
net.brinkervii.grapejuice.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
app-id: net.brinkervii.grapejuice
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: grapejuice
separate-locales: false
finish-args:
- --share=network
- --socket=x11 # Will be removed or replaced with fallback-x11 once Wine is improved
- --share=ipc
# Original device setting before the controller problems were discovered
# Note: Having this setting disabled causes very rare issues as seen in the helpdesk
#- --device=dri # Uncomment if --device=all is removed/commented to fix graphics issues
- --allow=devel # Necessary for VMProtect to function.
- --socket=pulseaudio
- --allow=multiarch
- --device=all # Necessary for controller support (important on Steam Deck)
- --env=GRAPEJUICE_LOCALE_DIRECTORY=/app/share/locale
- --env=PATH=/app/bin:/usr/bin:/app/patched_wine/bin
- --env=PYTHONPATH=/app/lib/python3/dist-packages
add-extensions:
org.freedesktop.Platform.Compat.i386:
directory: lib/i386-linux-gnu
version: '23.08'
org.freedesktop.Platform.Compat.i386.Debug:
directory: lib/debug/lib/i386-linux-gnu
version: '23.08'
no-autodownload: true
org.freedesktop.Platform.GL32:
directory: lib/i386-linux-gnu/GL
version: '1.4'
versions: 23.08;1.4
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
cleanup:
# pygobject headers
- /include
# python-unidecode
- /bin/unidecode
# python-charset-normalizer
- /bin/normalizer
modules:
- name: xrandr
sources:
- type: archive
url: https://xorg.freedesktop.org/archive/individual/app/xrandr-1.5.2.tar.xz
sha256: c8bee4790d9058bacc4b6246456c58021db58a87ddda1a9d0139bf5f18f1f240
x-checker-data:
type: anitya
project-id: 14957
stable-only: true
url-template: https://xorg.freedesktop.org/archive/individual/app/xrandr-$version.tar.xz
cleanup:
- /share/man
- /bin/xkeystone
- name: bundle-setup
buildsystem: simple
build-commands:
- mkdir -p /app/lib/i386-linux-gnu
- mkdir -p /app/lib/debug/lib/i386-linux-gnu
- mkdir -p /app/lib/i386-linux-gnu/GL
- install -Dm644 ld.so.conf /app/etc/ld.so.conf
sources:
- type: inline
dest-filename: ld.so.conf
contents: |
/app/lib32
/app/lib/i386-linux-gnu
- name: wine
buildsystem: simple
build-commands:
# NOTE: Users might have manually modified their PATH variable, so for backwards compatibility,
# please always install Wine to /app/patched_wine to avoid breaking the app unnecessarily.
- mkdir -p /app/patched_wine
- tar -C /app/patched_wine --strip-components 1 --use-compress-program=unzstd
-xvf wine.tar.zst
- stat /app/patched_wine/bin/wine
sources:
- type: file
dest-filename: wine.tar.zst
url: https://gitlab.com/brinkervii/wine-builds/-/raw/main/debuntu-wine-tkg-staging-fsync-git-8.17.1.r8.g5d9b555b.tar.zst
sha256: db4c009aac59ca856a10c08c0bc9c986b82491201088f0ad9156cb7afe4895ea
#x-checker-data:
# type: json
# url: https://api.github.com/repos/Kron4ek/Wine-Builds/releases
# version-query: first(.[] | select(.tag_name | test("^[0-9]"))).tag_name
# url-query: .[] | select(.tag_name == "" + $version + "") | .assets[] | select(.name
# == "wine-" + $version + "-staging-amd64.tar.xz").browser_download_url
- name: glxinfo
buildsystem: meson
config-opts:
- --bindir=/app/mesa-demos
- -Degl=disabled
- -Dglut=disabled
- -Dosmesa=disabled
- -Dvulkan=disabled
- -Dwayland=disabled
post-install:
- mv -v /app/mesa-demos/glxinfo /app/bin
sources:
- type: archive
url: https://archive.mesa3d.org/demos/mesa-demos-9.0.0.tar.xz
sha256: 3046a3d26a7b051af7ebdd257a5f23bfeb160cad6ed952329cdff1e9f1ed496b
x-checker-data:
type: anitya
project-id: 16781
stable-only: true
url-template: https://archive.mesa3d.org/demos/mesa-demos-$version.tar.xz
cleanup:
- /include
- /mesa-demos
- /share
modules:
- shared-modules/glu/glu-9.json
- name: winetricks
no-autogen: true
make-args:
- PREFIX=/app
make-install-args:
- PREFIX=/app
sources:
- type: archive
archive-type: tar-gzip
url: https://api.github.com/repos/Winetricks/winetricks/tarball/20230212
sha256: 01d81eaa9ba2d900df8eb7a2928688aa280a950d3f55e45528ccf319bd26f3ec
x-checker-data:
type: json
url: https://api.github.com/repos/Winetricks/winetricks/releases/latest
version-query: .tag_name
url-query: .tarball_url
timestamp-query: .published_at
cleanup:
- /share
modules:
- name: cabextract
build-options:
strip: true
sources:
- type: archive
url: https://www.cabextract.org.uk/cabextract-1.11.tar.gz
sha256: b5546db1155e4c718ff3d4b278573604f30dd64c3c5bfd4657cd089b823a3ac6
x-checker-data:
type: anitya
project-id: 245
stable-only: true
url-template: https://www.cabextract.org.uk/cabextract-$version.tar.gz
cleanup:
- /share/man
- name: p7zip
no-autogen: true
make-args:
- DEST_HOME=/app
- 7z
make-install-args:
- DEST_HOME=/app
sources:
- type: archive
archive-type: tar-gzip
url: https://api.github.com/repos/p7zip-project/p7zip/tarball/v17.05
sha256: 8be694161a71b94d50bd0632d85266f32729e45b60f128a6891a0eeb8d354fe3
x-checker-data:
type: json
url: https://api.github.com/repos/p7zip-project/p7zip/releases/latest
version-query: .tag_name
url-query: .tarball_url
timestamp-query: .published_at
cleanup:
- /man
- /share
- python3-requirements.yaml
- name: grapejuice
buildsystem: simple
build-commands:
- rm pyproject.toml
# Run Grapejuice packaging module
- PYTHONPATH="${PWD}/src" python3 -m grapejuice_packaging linux_package
# Extract the package into /app
- tar --strip-components 1 -xf "${PWD}/dist/linux_package/"*.tar.gz -C /app
# Install AppStream data/metainfo
- install -Dm644 "${FLATPAK_ID}.metainfo.xml" -t /app/share/metainfo
post-install:
# Rename MIME info file
- mv -v /app/share/mime/packages/x-grapejuice-roblox.xml /app/share/mime/packages/net.brinkervii.grapejuice.xml
# Rename Grapejuice desktop entries
- mv -v /app/share/applications/grapejuice.desktop /app/share/applications/${FLATPAK_ID}.desktop
- mv -v /app/share/applications/roblox-app.desktop /app/share/applications/${FLATPAK_ID}.robloxapp.desktop
- mv -v /app/share/applications/roblox-player.desktop /app/share/applications/${FLATPAK_ID}.robloxplayer.desktop
- mv -v /app/share/applications/roblox-studio.desktop /app/share/applications/${FLATPAK_ID}.robloxstudio.desktop
- mv -v /app/share/applications/roblox-studio-auth.desktop /app/share/applications/${FLATPAK_ID}.robloxstudioauth.desktop
# Edit Grapejuice shortcut
- desktop-file-edit /app/share/applications/${FLATPAK_ID}.desktop --set-icon=${FLATPAK_ID}
--set-key=Exec --set-value='grapejuice gui'
# Edit Roblox App shortcut
- desktop-file-edit /app/share/applications/${FLATPAK_ID}.robloxapp.desktop
--set-icon=${FLATPAK_ID}.robloxplayer --set-key=Exec --set-value='grapejuice
app'
# Edit Roblox Player shortcut
- desktop-file-edit /app/share/applications/${FLATPAK_ID}.robloxplayer.desktop
--set-icon=${FLATPAK_ID}.robloxplayer --set-key=Exec --set-value='grapejuice
player %u'
# Edit Roblox Studio shortcut
- desktop-file-edit /app/share/applications/${FLATPAK_ID}.robloxstudio.desktop
--set-icon=${FLATPAK_ID}.robloxstudio --set-key=Exec --set-value='grapejuice
studio %u'
# Edit Roblox Studio authentication shortcut
- desktop-file-edit /app/share/applications/${FLATPAK_ID}.robloxstudioauth.desktop
--set-icon=${FLATPAK_ID}.robloxstudio --set-key=Exec --set-value='grapejuice
studio-auth %u'
# Copy and rename Grapejuice icons so they can be properly exported by flatpak-builder.
- |
for res in 16x16 24x24 32x32 48x48 64x64 128x128 256x256
do
cp /app/share/icons/hicolor/${res}/apps/grapejuice.png /app/share/icons/hicolor/${res}/apps/${FLATPAK_ID}.png
cp /app/share/icons/hicolor/${res}/apps/grapejuice-roblox-player.png /app/share/icons/hicolor/${res}/apps/${FLATPAK_ID}.robloxplayer.png
cp /app/share/icons/hicolor/${res}/apps/grapejuice-roblox-studio.png /app/share/icons/hicolor/${res}/apps/${FLATPAK_ID}.robloxstudio.png
done
- cp /app/share/icons/hicolor/scalable/apps/grapejuice.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.png
sources:
- type: archive
url: https://gitlab.com/brinkervii/grapejuice/-/archive/v7.20.12/grapejuice-v7.20.12.tar.bz2
sha256: 0070a9b6162b7cb90ef2464bd598fbe2ab911052fdc2a439c42c18c833194452
x-checker-data:
type: json
url: https://gitlab.com/api/v4/projects/brinkervii%2Fgrapejuice/releases/permalink/latest
version-query: .tag_name | sub("^v"; "")
url-query: .assets.sources[] | select(.url | endswith("/grapejuice-v" +
$version + ".tar.bz2")) | .url
- type: file
path: net.brinkervii.grapejuice.metainfo.xml