VHSgunzo commited on
Commit
228a13e
·
1 Parent(s): 786aa26

Reduce the size of the lwrun installer

Browse files
CHANGELOG.md CHANGED
@@ -1,6 +1,7 @@
1
  # v0.78.2.3
2
 
3
  * Update [lwrun](https://huggingface.co/lux-wine/lwrun/tree/main/releases/v0.39.1) packages
 
4
  * Revert/replace `mesa-tkg-git` with `mesa` in `lwrun`
5
  * Fix prefix restore on first run with `-init`
6
 
 
1
  # v0.78.2.3
2
 
3
  * Update [lwrun](https://huggingface.co/lux-wine/lwrun/tree/main/releases/v0.39.1) packages
4
+ * Reduce the size of the `lwrun` installer
5
  * Revert/replace `mesa-tkg-git` with `mesa` in `lwrun`
6
  * Fix prefix restore on first run with `-init`
7
 
lwpkg/RunDir/Run ADDED
File without changes
lwpkg/RunDir/Run.sh ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ [ ! -d "$RUNDIR" ] && \
4
+ RUNDIR="$(dirname "$(realpath "$0" 2>/dev/null)" 2>/dev/null)"
5
+ export PATH="$RUNDIR/static:$PATH"
6
+
7
+ LW_DIR="$HOME/.local/share/LuxWine"
8
+ LWBIN_DIR="$LW_DIR/bin"
9
+ LWRUN="$LWBIN_DIR/lwrun"
10
+
11
+ mkdir -p "$LWBIN_DIR"
12
+ tar -I 'zstd -T0 --progress' -xf "$RUNDIR/lwrun.tar.zst" -C "$LWBIN_DIR"
13
+
14
+ exec "$LWRUN" -init
lwpkg/RunDir/lwrun.tar.zst ADDED
File without changes
lwpkg/RunDir/static/.binaries_version ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ [coreutils](https://github.com/VHSgunzo/coreutils-static) 9.3 (musl):
2
+ mkdir
3
+ (musl):
4
+ [tar](https://github.com/VHSgunzo/tar-static) 1.34
5
+ [bash](https://github.com/robxu9/bash-static) 5.2.015-1.2.3-2
6
+ [zstd](https://github.com/VHSgunzo/zstd-static) 1.4.7.r1914
lwpkg/RunDir/static/.version ADDED
@@ -0,0 +1 @@
 
 
1
+ 0.0.1
lwpkg/RunDir/static/bash ADDED
File without changes
lwpkg/RunDir/static/mkdir ADDED
File without changes
lwpkg/RunDir/static/tar ADDED
File without changes
lwpkg/RunDir/static/zstd ADDED
File without changes
lwpkg/build.sh ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ # https://github.com/VHSgunzo/runimage-runtime-static
5
+ RUNTIME='runtime-fuse2-all'
6
+ RUNTIMESIZE=($(du -sb "$RUNTIME" 2>/dev/null))
7
+
8
+ # RunDir/static
9
+ # bash # https://github.com/robxu9/bash-static
10
+ # mkdir # https://github.com/VHSgunzo/coreutils-static
11
+ # tar # https://github.com/VHSgunzo/tar-static
12
+ # zstd # https://github.com/VHSgunzo/zstd-static
13
+
14
+ # https://github.com/VHSgunzo/Run-wrapper
15
+ # RunDir/Run
16
+
17
+ # https://github.com/VHSgunzo/lwrun
18
+ tar -I 'zstd -T0 --ultra -22 --progress' -cf RunDir/lwrun.tar.zst lwrun
19
+ mksquashfs RunDir lwrun -offset "$RUNTIMESIZE" -root-owned -no-xattrs -quiet -mkfs-time 0 -noappend -b 1M -comp lz4 -Xhc
20
+ dd if="$RUNTIME" bs="$RUNTIMESIZE" count=1 of=lwrun conv=notrunc
21
+ chmod +x lwrun
lwpkg/lwrun ADDED
File without changes
lwpkg/runtime-fuse2-all ADDED
File without changes
main.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:701217644c2d076e3abf3de7088d6af2d0ce0103990d73979da0a4c19b5a7a66
3
- size 576085
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b59770f79e9b18370438bb49fcb85eda6c0fc6d7c6db5901046c2d45210f752
3
+ size 579306