forked from kujeger/flatpak-gog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.gog.Template.json
56 lines (56 loc) · 1.98 KB
/
com.gog.Template.json
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
{
"app-id": "com.gog.GAMENAME",
"branch": "master",
"runtime": "org.freedesktop.Platform",
"runtime-version": "18.08",
"sdk": "org.freedesktop.Sdk",
"base": "com.gog.Base",
"base-version": "master",
"command": "starter",
"rename-desktop-file": "Template.desktop",
"rename-icon": "icon",
"finish-args": [
"--socket=x11",
"--share=network",
"--share=ipc",
"--device=all",
"--socket=pulseaudio",
"--persist=.",
"--env=LD_LIBRARY_PATH=/app/lib"
],
"cleanup": [
"/include"
],
"modules": [
{
"name": "game",
"buildsystem": "simple",
"build-commands": [
"mkdir -p /app/game /app/bin /app/lib /app/share/applications/ /app/share/icons/hicolor/256x256/apps /app/share/desktop-directories/",
"install starter* /app/bin/",
"for x in installer*.sh; do script --return -c \"sh ${x} -- --notermspawn --i-agree-to-all-licenses --noreadme --nooptions --noprompt --destination /app/game --ui=stdio\" /dev/null; done",
"if [ -e configure ]; then sh configure; fi",
"install Template.desktop /app/share/applications/",
"sed -i \"s/LONGNAME/$(head -n 1 /app/game/gameinfo)/g\" /app/share/applications/Template.desktop",
"cp /app/game/support/icon.png /app/share/icons/hicolor/256x256/apps/",
"chmod a+x -R /app/game/game"
],
"sources": [
{
"type": "file",
"path": "GAMEINSTALLER",
"dest-filename": "installer-0.sh"
},
{
"type": "file",
"path": "gog-starter",
"dest-filename": "starter"
},
{
"type": "file",
"path": "Template.desktop"
}
]
}
]
}