mirror of
https://github.com/Phantop/dotfiles
synced 2024-12-26 15:06:50 +00:00
19 lines
334 B
Plaintext
19 lines
334 B
Plaintext
|
#!/bin/sh
|
||
|
mksquashfs $@ squash -comp zstd -b 1M -Xcompression-level 22
|
||
|
|
||
|
cat > script <<'EOF'
|
||
|
#!/bin/sh
|
||
|
file=$(basename $0)
|
||
|
DIR=/tmp/.mount_$file$RANDOM
|
||
|
mkdir $DIR
|
||
|
squashfuse -o offset=154 $0 $DIR
|
||
|
$DIR/AppRun $@
|
||
|
fusermount -uz $DIR
|
||
|
rmdir $DIR
|
||
|
exit
|
||
|
EOF
|
||
|
|
||
|
cat script squash > $(basename $@).sh
|
||
|
chmod +x $(basename $@).sh
|
||
|
rm script squash
|