diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f55e8b..ee4f987 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # v0.78.2.3 * Update [lwrun](https://huggingface.co/lux-wine/lwrun/tree/main/releases/v0.39.1) packages +* Reduce the size of the `lwrun` installer * Revert/replace `mesa-tkg-git` with `mesa` in `lwrun` * Fix prefix restore on first run with `-init` diff --git a/lwpkg/RunDir/Run b/lwpkg/RunDir/Run new file mode 100755 index 0000000..e69de29 diff --git a/lwpkg/RunDir/Run.sh b/lwpkg/RunDir/Run.sh new file mode 100755 index 0000000..fbeb03d --- /dev/null +++ b/lwpkg/RunDir/Run.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +[ ! -d "$RUNDIR" ] && \ +RUNDIR="$(dirname "$(realpath "$0" 2>/dev/null)" 2>/dev/null)" +export PATH="$RUNDIR/static:$PATH" + +LW_DIR="$HOME/.local/share/LuxWine" +LWBIN_DIR="$LW_DIR/bin" +LWRUN="$LWBIN_DIR/lwrun" + +mkdir -p "$LWBIN_DIR" +tar -I 'zstd -T0 --progress' -xf "$RUNDIR/lwrun.tar.zst" -C "$LWBIN_DIR" + +exec "$LWRUN" -init diff --git a/lwpkg/RunDir/lwrun.tar.zst b/lwpkg/RunDir/lwrun.tar.zst new file mode 100644 index 0000000..e69de29 diff --git a/lwpkg/RunDir/static/.binaries_version b/lwpkg/RunDir/static/.binaries_version new file mode 100644 index 0000000..587a94e --- /dev/null +++ b/lwpkg/RunDir/static/.binaries_version @@ -0,0 +1,6 @@ +[coreutils](https://github.com/VHSgunzo/coreutils-static) 9.3 (musl): + mkdir +(musl): + [tar](https://github.com/VHSgunzo/tar-static) 1.34 + [bash](https://github.com/robxu9/bash-static) 5.2.015-1.2.3-2 + [zstd](https://github.com/VHSgunzo/zstd-static) 1.4.7.r1914 diff --git a/lwpkg/RunDir/static/.version b/lwpkg/RunDir/static/.version new file mode 100644 index 0000000..8acdd82 --- /dev/null +++ b/lwpkg/RunDir/static/.version @@ -0,0 +1 @@ +0.0.1 diff --git a/lwpkg/RunDir/static/bash b/lwpkg/RunDir/static/bash new file mode 100755 index 0000000..e69de29 diff --git a/lwpkg/RunDir/static/mkdir b/lwpkg/RunDir/static/mkdir new file mode 100755 index 0000000..e69de29 diff --git a/lwpkg/RunDir/static/tar b/lwpkg/RunDir/static/tar new file mode 100755 index 0000000..e69de29 diff --git a/lwpkg/RunDir/static/zstd b/lwpkg/RunDir/static/zstd new file mode 100755 index 0000000..e69de29 diff --git a/lwpkg/build.sh b/lwpkg/build.sh new file mode 100755 index 0000000..77ef8ae --- /dev/null +++ b/lwpkg/build.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +set -e + +# https://github.com/VHSgunzo/runimage-runtime-static +RUNTIME='runtime-fuse2-all' +RUNTIMESIZE=($(du -sb "$RUNTIME" 2>/dev/null)) + +# RunDir/static +# bash # https://github.com/robxu9/bash-static +# mkdir # https://github.com/VHSgunzo/coreutils-static +# tar # https://github.com/VHSgunzo/tar-static +# zstd # https://github.com/VHSgunzo/zstd-static + +# https://github.com/VHSgunzo/Run-wrapper +# RunDir/Run + +# https://github.com/VHSgunzo/lwrun +tar -I 'zstd -T0 --ultra -22 --progress' -cf RunDir/lwrun.tar.zst lwrun +mksquashfs RunDir lwrun -offset "$RUNTIMESIZE" -root-owned -no-xattrs -quiet -mkfs-time 0 -noappend -b 1M -comp lz4 -Xhc +dd if="$RUNTIME" bs="$RUNTIMESIZE" count=1 of=lwrun conv=notrunc +chmod +x lwrun diff --git a/lwpkg/lwrun b/lwpkg/lwrun new file mode 100644 index 0000000..e69de29 diff --git a/lwpkg/runtime-fuse2-all b/lwpkg/runtime-fuse2-all new file mode 100755 index 0000000..e69de29