mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-24 12:56:56 +00:00
slight script cleanup and do more workers
This commit is contained in:
parent
66a7ba3b6d
commit
539e680240
9
appdwarf
9
appdwarf
|
@ -14,11 +14,12 @@ dwarf() {
|
|||
mkdwarfs -i "$1" -o "$(basename "$1").sh" -B5 "${@:2}" --header <(cat << 'EOF'
|
||||
#!/bin/sh
|
||||
DIR="$(mktemp -td dwarf_$(basename "$0")XXXXX)"
|
||||
dwarfs -o offset=auto -o tidy_strategy=swap "$0" "$DIR" 2> /dev/null
|
||||
export APPDWARF_CMD="$0"
|
||||
ARG="-o offset=auto -o tidy_strategy=swap -o workers=4"
|
||||
dwarfs $ARG "$0" "$DIR" 2>/dev/null
|
||||
export APPDWARF_CMD=$(basename "$0")
|
||||
"$DIR/AppRun" "$@"
|
||||
fusermount -uz "$DIR" 2> /dev/null
|
||||
rmdir "$DIR" 2> /dev/null
|
||||
fusermount -u "$DIR"
|
||||
rmdir "$DIR"
|
||||
exit
|
||||
EOF
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue