remove md5sum invocation and use better predictable path

This commit is contained in:
Phantop 2022-11-11 12:34:07 -05:00
parent da3fad3362
commit 51d60260cb

View file

@ -10,7 +10,7 @@ apprun() {
# shellcheck disable=SC2086,SC2155
header() {
APPDIR="/tmp/dwarf_$(basename "$0")$(echo "$0"|md5sum|head -c5)"
APPDIR="/tmp/dwarf_$(realpath "$0" | sed 's#/#_#g')"
export APPDIR APPIMAGE="$(realpath "$0")" ARGV0="$0" OWD="$PWD"
args="-o offset=auto -o tidy_strategy=swap -o workers=4"
[ ! -d "$APPDIR" ] && mkdir "$APPDIR" && dwarfs $args "$0" "$APPDIR" 2>/dev/null