-
Notifications
You must be signed in to change notification settings - Fork 3
/
com.jagexlauncher.JagexLauncher.yml
167 lines (167 loc) · 6.33 KB
/
com.jagexlauncher.JagexLauncher.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
# Versions
x-gl-version: &gl-version '1.4'
x-gl-versions: &gl-versions 23.08;1.4
x-runtime-version: &runtime-version '23.08'
# Flatpak manifest
app-id: com.jagexlauncher.JagexLauncher
runtime: org.freedesktop.Platform
runtime-version: *runtime-version
sdk: org.freedesktop.Sdk
command: jagex-run
finish-args:
- --share=ipc
- --socket=x11
- --socket=wayland
- --socket=pulseaudio
- --device=dri
- --share=network
- --allow=multiarch
- --allow=devel
- --talk-name=org.freedesktop.Notifications
sdk-extensions:
- org.freedesktop.Sdk.Compat.i386
- org.freedesktop.Sdk.Extension.openjdk17
add-extensions:
org.freedesktop.Platform.Compat.i386:
directory: lib/i386-linux-gnu
version: *runtime-version
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
modules:
- name: libnotify
buildsystem: meson
config-opts:
- -Dman=false
- -Dgtk_doc=false
- -Ddocbook_docs=disabled
cleanup:
- /include
- /lib/pkgconfig
- /lib/debug
- /lib/girepository-1.0
- /share/gtk-doc
- /share/gir-1.0
sources:
- type: git
url: https://github.com/GNOME/libnotify.git
tag: 0.8.3
commit: 6083790f9e0f1827147ecd8799c4dced0e86a877
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk17/install.sh
- mv /app/jre/bin/java /app/jre/bin/java.bk
- mv java /app/jre/bin/java
- chmod +x /app/jre/bin/java
sources:
- type: script
dest-filename: java # https://gitlab.com/hdos/issues/-/issues/2004
commands:
-
#!/bin/bash
- /app/jre/bin/java.bk $(echo "$@" | sed 's|--add-opens java.desktop/java.awt=ALL-UNNAMED||g')
- name: wine-ge
buildsystem: simple
build-commands:
- mkdir wine
- tar xf wine.tar.xz -C wine --strip-components 1 # String top level dir and place into predictable directory name to decouple from the name of the top-level dir
- install --directory /app/opt
- mv wine /app/opt/wine
sources:
- type: file
dest-filename: wine.tar.xz
url: https://github.com/GloriousEggroll/wine-ge-custom/releases/download/GE-Proton8-26/wine-lutris-GE-Proton8-26-x86_64.tar.xz
sha512: 3abd578ed45a16096843936e0258799450e6a5751bc67afaf8c58cd245c40e62794a89af25ae482d74d5ca2b7527d17ff77232781c6d9cf97bc02976c2f960bd
x-checker-data:
type: json
url: https://api.github.com/repos/GloriousEggroll/wine-ge-custom/releases/latest
version-query: .tag_name | sub("^GE-Proton-"; "")
url-query: .assets[] | select(.name=="wine-lutris-" + $version + "-x86_64.tar.xz")
| .browser_download_url
- name: runelite-jar
buildsystem: simple
build-commands:
- mv RuneLite.jar /app/
- mv RuneLite.exe /app/
sources:
- type: file
dest-filename: RuneLite.jar
url: https://github.com/runelite/launcher/releases/download/2.7.2/RuneLite.jar
sha256: 140462b351e60d9e92da54836d12f4828cb699182b3251d8e02ee1bedcb211d3
x-checker-data:
type: json
url: https://api.github.com/repos/runelite/launcher/releases
version-query: first(.[] | select(.assets[] | .name == "RuneLite.jar"))
| .tag_name
url-query: first(.[] | select(.assets[] | .name == "RuneLite.jar")) .assets[]
| select(.name == "RuneLite.jar") | .browser_download_url
- type: script
dest-filename: RuneLite.exe # We name this bash script .exe bc Jagex Launcher runs RuneLite.exe. Wine is able to somehow intepret it is a bash script and run that instead.
commands:
-
#!/bin/bash
- set -x
- /app/jre/bin/java.bk -Duser.home="$XDG_DATA_HOME/user_home" -jar /app/RuneLite.jar
-J-Duser.home="$XDG_DATA_HOME/user_home"
- name: hdos-jar
buildsystem: simple
build-commands:
- mv hdos-launcher.jar /app/
- mv HDOS.exe /app/
sources:
- type: file
dest-filename: hdos-launcher.jar
url: https://cdn.hdos.dev/launcher/v8/hdos-launcher.jar
sha256: d3475d791fa8bfa4e3ae7fa9b1c5e86a8e02d1e93f88ff4776582af78ea92fc0
x-checker-data:
type: html
url: https://cdn.hdos.dev/client/getdown.txt
version-pattern: launcher.version = (\d.*)
url-template: https://cdn.hdos.dev/launcher/v$version/hdos-launcher.jar
- type: script
dest-filename: HDOS.exe # We name this bash script .exe bc Jagex Launcher runs RuneLite.exe. Wine is able to somehow intepret it is a bash script and run that instead.
commands:
-
#!/bin/bash
- /app/jre/bin/java -jar /app/hdos-launcher.jar
- name: jagex-launcher
buildsystem: simple
build-commands:
- mkdir -p /app/lib/i386-linux-gnu/GL
- mkdir -p /app/lib/debug/lib/i386-linux-gnu
- mkdir -p /app/bin
- install jagex-install /app/bin/jagex-install
- install -Dm644 com.jagexlauncher.JagexLauncher.desktop /app/share/applications/com.jagexlauncher.JagexLauncher.desktop
- install -Dm644 com.jagexlauncher.JagexLauncher.metainfo.xml /app/share/metainfo/com.jagexlauncher.JagexLauncher.metainfo.xml
- install -Dm644 256.png /app/share/icons/hicolor/256x256/apps/com.jagexlauncher.JagexLauncher.png
- install -Dm644 steamdeck-settings.properties /app/steamdeck-settings.properties
sources:
- type: file
path: jagex-launcher-linux/resources/installer.py
dest-filename: jagex-install
- type: file
path: com.jagexlauncher.JagexLauncher.desktop
- type: file
path: com.jagexlauncher.JagexLauncher.metainfo.xml
- type: file
path: icons/256/256.png
- type: file
path: jagex-launcher-linux/resources/steamdeck-settings.properties
- name: launch-script
buildsystem: simple
build-commands:
- mkdir -p /app/bin
- install jagex-run /app/bin/jagex-run
sources:
- type: file
dest-filename: jagex-run
path: scripts/jagex-run.sh