2022-04-17 19:39:52 +00:00
|
|
|
#!/bin/sh
|
2022-06-20 14:43:39 +00:00
|
|
|
ARGV0="$(basename "$0")"; APPDIR="/tmp/dwarf_$ARGV0$(echo "$0"|md5sum|head -c5)"
|
|
|
|
export APPIMAGE="$0" OWD="$PWD" ARGV0 APPDIR
|
|
|
|
[ ! -d "$APPDIR" ] && mkdir "$APPDIR" &&
|
2022-06-20 19:13:05 +00:00
|
|
|
dwarfs -o offset=auto -o tidy_strategy=swap -o workers=4 "$0" "$APPDIR" 2>/dev/null
|
2022-04-17 19:39:52 +00:00
|
|
|
|
2022-06-11 19:02:34 +00:00
|
|
|
"$APPDIR/AppRun" "$@"
|
2022-06-20 14:43:39 +00:00
|
|
|
res=$?
|
2022-06-11 19:02:34 +00:00
|
|
|
fusermount -quz "$APPDIR"
|
2022-06-20 19:13:05 +00:00
|
|
|
rmdir "$APPDIR" > /dev/null
|
2022-06-20 14:43:39 +00:00
|
|
|
exit $res
|