-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.cemu.Cemu.json
156 lines (156 loc) · 4.96 KB
/
info.cemu.Cemu.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
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
{
"id":"info.cemu.Cemu",
"sdk":"org.freedesktop.Sdk",
"runtime":"org.freedesktop.Platform",
"runtime-version":"21.08",
"command":"cemu",
"finish-args":[
"--share=ipc",
"--socket=wayland",
"--socket=x11",
"--socket=pulseaudio",
"--share=network",
"--device=all",
"--allow=multiarch",
"--allow=bluetooth",
"--env=WINEPREFIX=/var/data/wine",
"--filesystem=host"
],
"add-extensions": {
"org.freedesktop.Platform.Compat.i386": {
"directory": "lib/i386-linux-gnu",
"version": "21.08"
},
"org.freedesktop.Platform.Compat.i386.Debug": {
"directory": "lib/debug/lib/i386-linux-gnu",
"version": "21.08",
"no-autodownload": true
},
"org.freedesktop.Platform.GL32": {
"directory": "lib/i386-linux-gnu/GL",
"version": "1.4",
"versions": "21.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"
}
},
"modules":[
{
"name":"proton",
"buildsystem":"simple",
"build-commands":[
"cd files && find . -type f -exec install -D \"{}\" \"${FLATPAK_DEST}/{}\" \\;"
],
"sources":[
{
"type":"archive",
"url":"https://github.com/GloriousEggroll/proton-ge-custom/releases/download/GE-Proton7-14/GE-Proton7-14.tar.gz",
"sha512":"3cbe99a2659dab1871cef0b50deb8cab4f101cc4d0531ed3d2cd7cf89dcee6aa08357b3d485e4260ab7a46af13bf6349daed16deb382cbadd5b2831ba7ad5503"
}
]
},
{
"name": "winetricks",
"buildsystem":"simple",
"build-commands":[
"install -Dm755 -t ${FLATPAK_DEST}/bin winetricks"
],
"sources": [
{
"type": "file",
"dest-filename": "winetricks",
"url": "https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks",
"sha256": "d23dbdf84a2f75b0cbb9608f9ba9d65ee23947fdf71be76115c9eb066b3b3100"
}
]
},
{
"name":"cemu",
"buildsystem":"simple",
"build-commands":[
"install cemu-updater ${FLATPAK_DEST}/bin",
"install cemu ${FLATPAK_DEST}/bin",
"install /usr/bin/unzip ${FLATPAK_DEST}/bin",
"install -Dm644 --target-directory=${FLATPAK_DEST}/share/metainfo info.cemu.Cemu.metainfo.xml",
"echo 'Icon=info.cemu.Cemu' >> info.cemu.Cemu.desktop",
"install -Dm644 --target-directory=${FLATPAK_DEST}/share/applications info.cemu.Cemu.desktop",
"install -Dm644 --target-directory=${FLATPAK_DEST}/share/icons/hicolor/512x512/apps info.cemu.Cemu.png"
],
"sources":[
{
"type":"script",
"dest-filename":"cemu-updater",
"commands":[
"cemu_version_file=\"/var/data/cemu/version\"",
"cemu_version_current=\"\"",
"if [ -f \"/var/data/cemu/.experimental\" ]; then",
"\tcemu_dl_url=\"https:\/\/cemu.info\/$(curl -sSL https:\/\/cemu.info\/changelog.html | grep '<a href=\"releases' | sed -n 's|^.*\\href=\"\\([^\"]\\+\\)\".*$|\\1|p' | head -n 1)\"",
"else",
"\tcemu_dl_url=\"$(curl -sSL https:\/\/cemu.info | grep '<a\\s[^>]*\\bname\\s*=\\s*\"download\"' | sed -n 's|^.*\\bhref=\"\\([^\"]\\+\\)\".*$|\\1|p')\"",
"fi",
"cemu_bn=\"$(basename \"$cemu_dl_url\")\"",
"if [ -f \"$cemu_version_file\" ]; then",
"\tcemu_version_current=\"$(head -n 1 \"$cemu_version_file\")\"",
"fi",
"if [ \"$cemu_bn\" != \"$cemu_version_current\" ]; then",
"\techo -e \"Downloading newer cemu release $cemu_bn\"",
"\tcurl -sSLo \"\/var\/data\/$cemu_bn\" \"$cemu_dl_url\"",
"\trd=\"$(unzip -Z -1 \"\/var\/data\/$cemu_bn\" | head -n 1)\"",
"\trd=\"${rd\/%\\\/*\/}\"",
"\tmkdir -p \"\/var\/data\/cemu\"",
"\tln -sf . \"\/var\/data\/cemu\/$rd\"",
"\tunzip -q -o \"\/var\/data\/$cemu_bn\" -d \"\/var\/data\/cemu\"",
"\trm -f \"\/var\/data\/cemu\/$rd\"",
"\techo \"$cemu_bn\" > \"$cemu_version_file\"",
"\trm -f \"\/var\/data\/$cemu_bn\"",
"fi"
]
},
{
"type":"script",
"dest-filename":"cemu",
"commands":[
"mkdir -p /var/data/cemu",
"[ ! -f \"/var/data/cemu/.noupdate\" ] && cemu-updater",
"winetricks -q vcrun2017",
"exec /app/bin/wine64 /var/data/cemu/Cemu.exe \"$@\""
]
},
{
"type":"file",
"url":"https://upload.wikimedia.org/wikipedia/commons/2/25/Cemu_Emulator_icon.png",
"sha256":"392d7dc4087d2c20b7f95fd7dc1ed7042e48a20c65774e12886444edd4e4e8d9",
"dest-filename":"info.cemu.Cemu.png"
},
{
"type":"file",
"path":"info.cemu.Cemu.metainfo.xml"
},
{
"type":"file",
"path":"info.cemu.Cemu.desktop"
}
]
},
{
"name": "bundle-setup",
"buildsystem": "simple",
"build-commands": [
"mkdir -p ${FLATPAK_DEST}/{,lib/debug/}lib/i386-linux-gnu/GL",
"install -Dm644 -t ${FLATPAK_DEST}/etc ld.so.conf"
],
"sources": [
{
"type": "file",
"dest-filename": "ld.so.conf",
"url": "data:/app/lib64%0A/app/lib/i386-linux-gnu%0A"
}
]
}
]
}