fix ULWGL-launcher tarball location

This commit is contained in:
GloriousEggroll 2024-02-05 15:21:57 -07:00
parent 24e84e8606
commit 68f580cf62
2 changed files with 9 additions and 20 deletions

View File

@ -138,31 +138,19 @@ add-extensions:
no-autodownload: true
autodelete: true
cleanup:
- /lib/*.a
- /lib/*.la
- /lib32/*.a
- /lib32/*.la
- /share/doc
- /share/gtk-doc
- /share/man
cleanup-commands:
- python3 -m compileall --invalidation-mode=unchecked-hash /app
modules:
# --- ULWGL ---
- name: ulwgl-run
buildsystem: simple
build-commands:
- install -D ulwgl-run /app/bin/ulwgl-run
- install -D ULWGL-launcher.tar.gz /app/bin/ULWGL-launcher.tar.gz
- install -D ULWGL-launcher.tar.gz /app/share/ULWGL/ULWGL-launcher.tar.gz
sources:
- type: file
path: ulwgl-run
- type: file
url: https://github.com/Open-Wine-Components/ULWGL-launcher/releases/download/0.1-RC1/ULWGL-launcher.tar.gz
sha256: 11a85f0acaf5a3bec8dbef7c7f97e111e7d2eb5932c980346907cc5a9aad8811
url: https://github.com/Open-Wine-Components/ULWGL-launcher/releases/download/0.1-RC2/ULWGL-launcher.tar.gz
sha256: 9c7a5102d2e010165527b4d903d77ca4a453401d9a654b1edfa101dc17236930
- name: platform-bootstrap
buildsystem: simple

View File

@ -13,12 +13,16 @@ fi
ULWGL_PROTON_VER="ULWGL-Proton-8.0-5"
ULWGL_LAUNCHER_VER="0.1-RC2"
me="$(readlink -f "$0")"
#here="${me%/*}"
# This is how we update on flatpak. For distro packages it will be similar -- tarball placed in /usr/share which auto-extracts to the user's ~/.local/share/ULWGL/
if [[ ! -d "$HOME"/.local/share/ULWGL/ ]]; then
tar -zxvf ULWGL-launcher.tar.gz --one-top-level="$HOME"/.local/share/ULWGL
tar -zxvf ${me%/*/*}/share/ULWGL/ULWGL-launcher.tar.gz --one-top-level="$HOME"/.local/share/ULWGL
else
if [[ "$ULWGL_LAUNCHER_VER" != $(cat "$HOME"/.local/share/ULWGL/ULWGL-VERSION) ]]; then
rm -Rf "$HOME"/.local/share/ULWGL/
tar -zxvf ULWGL-launcher.tar.gz --one-top-level="$HOME"/.local/share/ULWGL
tar -zxvf ${me%/*/*}/share/ULWGL/ULWGL-launcher.tar.gz --one-top-level="$HOME"/.local/share/ULWGL
fi
fi
@ -128,9 +132,6 @@ if [[ "$EXE" == "createprefix" ]]; then
fi
shift 1
#me="$(readlink -f "$0")"
#here="${me%/*}"
export STEAM_COMPAT_TOOL_PATHS="$PROTONPATH:$here"
export STEAM_COMPAT_MOUNTS="$PROTONPATH:$here"