mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-20 05:43:43 +00:00
Allow running different command in image
This commit is contained in:
parent
5eca8a2ad8
commit
66a7ba3b6d
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
HERE=$(dirname $(readlink -f "${0}"))
|
HERE=$(dirname $(readlink -f "${0}"))
|
||||||
export LD_LIBRARY_PATH="${HERE}":$PATH
|
export LD_LIBRARY_PATH="${HERE}":$PATH
|
||||||
wine "${HERE}"/exe "$@"
|
"${HERE}"/$APPDWARF_CMD "$@"
|
||||||
|
|
3
appdwarf
3
appdwarf
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
version=1.1
|
version=1.2
|
||||||
|
|
||||||
usage(){
|
usage(){
|
||||||
echo "Usage: $(basename "$0") [option] [FILE/FOLDER/URL]"
|
echo "Usage: $(basename "$0") [option] [FILE/FOLDER/URL]"
|
||||||
|
@ -15,6 +15,7 @@ dwarf() {
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
DIR="$(mktemp -td dwarf_$(basename "$0")XXXXX)"
|
DIR="$(mktemp -td dwarf_$(basename "$0")XXXXX)"
|
||||||
dwarfs -o offset=auto -o tidy_strategy=swap "$0" "$DIR" 2> /dev/null
|
dwarfs -o offset=auto -o tidy_strategy=swap "$0" "$DIR" 2> /dev/null
|
||||||
|
export APPDWARF_CMD="$0"
|
||||||
"$DIR/AppRun" "$@"
|
"$DIR/AppRun" "$@"
|
||||||
fusermount -uz "$DIR" 2> /dev/null
|
fusermount -uz "$DIR" 2> /dev/null
|
||||||
rmdir "$DIR" 2> /dev/null
|
rmdir "$DIR" 2> /dev/null
|
||||||
|
|
Loading…
Reference in a new issue