Hi nix, bye appsquash, zzexe -22

This commit is contained in:
Phantop 2021-10-28 14:14:18 -04:00
parent e329571d47
commit dfa0891694
3 changed files with 2 additions and 19 deletions

View File

@ -20,6 +20,7 @@ a imgsum 'printf "$argv: " && identify -format "%#\n"'
a l ls
a la 'l -a'
a less 'eval $PAGER'
a nix 'bax . ~/.nix-profile/etc/profile.d/nix.sh; command nix'
a off shutdown
a offh 'off (math "60*"$argv);:'
a open xdg-open

View File

@ -1,18 +0,0 @@
#!/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

View File

@ -132,7 +132,7 @@ else
(exit 127); res=127
fi; exit $res
EOF
zstd -cv19 "$file") > "$tmp" || {
zstd -cv22 --ultra "$file") > "$tmp" || {
res=$?
printf >&2 '%s\n' "$0: compression not possible for $i, file unchanged."
continue