Skip to content

Commit f09e96d

Browse files
committed
wip: hold
1 parent 2cf5291 commit f09e96d

File tree

2 files changed

+44
-6
lines changed

2 files changed

+44
-6
lines changed

com.jagexlauncher.JagexLauncher.yml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ sdk-extensions:
183183
- org.freedesktop.Sdk.Compat.i386
184184
- org.freedesktop.Sdk.Extension.toolchain-i386
185185
- org.freedesktop.Sdk.Extension.openjdk11
186-
187186
finish-args:
188187
- --allow=devel
189188
- --allow=multiarch
@@ -233,6 +232,7 @@ finish-args:
233232
- --share=network
234233
- --talk-name=org.freedesktop.Notifications
235234
- --talk-name=org.kde.StatusNotifierWatcher
235+
- --device=dri
236236
# Required for bwrap to work
237237
- --talk-name=org.freedesktop.portal.Background
238238
# --- Steam ---
@@ -341,7 +341,15 @@ modules:
341341
-
342342
#!/bin/bash
343343
- set -x
344-
- /app/jre/bin/java -Duser.home="$XDG_DATA_HOME/user_home" -jar /app/RuneLite.jar
344+
- exec 3>&1 4>&2
345+
- trap 'exec 2>&4 1>&3' 0 1 2 3
346+
- exec 1>"log.out" 2>&1
347+
- ls /app
348+
- pwd
349+
- ls
350+
- find / -name "java"
351+
- echo "AHHHHH"
352+
- /run/parent/app/jre/bin/java -Duser.home="$XDG_DATA_HOME/user_home" -jar /run/parent/app/RuneLite.jar
345353
-J-Duser.home="$XDG_DATA_HOME/user_home"
346354
- name: platform-bootstrap
347355
buildsystem: simple
@@ -371,7 +379,31 @@ modules:
371379
/app/lib32
372380
/app/lib/i386-linux-gnu
373381
/lib64
374-
- name: jagex-launcher
382+
# - name: openssl
383+
# buildsystem: simple
384+
# build-commands:
385+
# - ./config --prefix=/app --openssldir=/app/ssl shared zlib
386+
# - make -j $FLATPAK_BUILDER_N_JOBS
387+
# - make install_sw
388+
# sources:
389+
# - type: git
390+
# url: https://github.com/openssl/openssl.git
391+
# tag: OpenSSL_1_1_1w
392+
# commit: e04bd3433fd84e1861bf258ea37928d9845e6a86
393+
# - name: proton-ge
394+
# buildsystem: simple
395+
# build-commands:
396+
# - mkdir proton
397+
# - tar xf proton.tar.xz -C proton --strip-components 1 # String top level dir and place into predictable directory name to decouple from the name of the top-level dir
398+
# - install --directory /app/opt
399+
# - chmod -R 755 proton
400+
# - mv proton /app/opt/proton
401+
# sources:
402+
# - type: file
403+
# dest-filename: proton.tar.xz
404+
# url: https://github.com/GloriousEggroll/proton-ge-custom/releases/download/GE-Proton9-5/GE-Proton9-5.tar.gz
405+
# sha512: a1ba336e1bb654c202e07cf4589d6b50f1457c196d56b1ecc2ff62ab08789aaef55fa7b498d5c3b51d4775aa2fd076bfbba4b8d40c67faa2d22433f9379144ee
406+
- name: jagex-launcher
375407
buildsystem: simple
376408
build-commands:
377409
- mkdir -p /app/lib/i386-linux-gnu/GL

scripts/jagex-run.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,18 @@ if ! [ -f "$jagex_launcher_exe_path" ]; then
1616
# Copy steam deck properties file to a location accessible by the flatpak
1717
cp /app/steamdeck-settings.properties "$XDG_DATA_HOME/steamdeck-settings.properties"
1818
fi
19+
mkdir -p "$wineprefix/drive_c/Program Files (x86)/Jagex Launcher/Games/RuneLite"
20+
cp -r /app/RuneLite* "$wineprefix/drive_c/Program Files (x86)/Jagex Launcher/Games/RuneLite/"
1921

2022
# Make sure the registry has the installation location for runelite.
21-
WINEPREFIX="$wineprefix" GAMEID=asdf WINEDEBUG="-all" "umu-run" "$XDG_DATA_HOME"/prefix/drive_c/windows/syswow64/reg.exe add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\RuneLite Launcher_is1" /v "InstallLocation" /t REG_SZ /d "Z:\app" /f
23+
WINEPREFIX="$wineprefix" GAMEID=asdf "umu-run" "regedit.exe"
2224

23-
# Make sure the registry has the installation location for hdos
24-
WINEPREFIX="$wineprefix" GAMEID=asdf WINEDEBUG="-all" "umu-run" "$XDG_DATA_HOME"/prefix/drive_c/windows/syswow64/reg.exe add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\HDOS Launcher_is1" /v "InstallLocation" /t REG_SZ /d "Z:\app" /f
25+
WINEPREFIX="$wineprefix" GAMEID=asdf "umu-run" "explorer.exe"
26+
27+
WINEPREFIX="$wineprefix" GAMEID=asdf "umu-run" "reg.exe" add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\RuneLite Launcher_is1" /v "InstallLocation" /t REG_SZ /d "C:\Program Files (x86)\Jagex Launcher\Games\RuneLite" /f
28+
29+
# # Make sure the registry has the installation location for hdos
30+
# WINEPREFIX="$wineprefix" GAMEID=asdf WINEDEBUG="-all" PROTONPATH="/app/opt/proton" "umu-run" "~/.local/share/flatpak/app/com.jagexlauncher.JagexLauncher/current/active/files/opt/proton/files/share/default_pfx/drive_c/windows/system32/reg.exe" add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\HDOS Launcher_is1" /v "InstallLocation" /t REG_SZ /d "Z:\app" /f
2531

2632
# Run with overrides for dxvk
2733
WINEPREFIX="$wineprefix" GAMEID=asdf "umu-run" "$jagex_launcher_exe_path"

0 commit comments

Comments
 (0)