mirror of https://github.com/Phantop/dotfiles
Hi nix, bye appsquash, zzexe -22
This commit is contained in:
parent
e329571d47
commit
dfa0891694
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue