#!/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