mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-09 13:47:08 +00:00
Update help info and handle using . as input path
This commit is contained in:
parent
85337d120e
commit
20452fa6e6
10
appdwarf
10
appdwarf
|
@ -9,12 +9,18 @@ usage(){
|
|||
echo "Usage: $(basename "$0") [option] [FILE/FOLDER/URL]"
|
||||
echo " Compress a given AppDir (default)"
|
||||
echo " -a, --appimage Convert a given AppImage to appdwarf"
|
||||
echo " -b, --lookback Change dwarfs block lookback amount"
|
||||
echo " -f, --folder Make image mount to a specified folder instead of running AppRun"
|
||||
echo " -s, --separate Use old, separated header format"
|
||||
echo " -u, --url Fetch AppImage from URL and convert to appdwarf"
|
||||
|
||||
echo " -h, --help Print this help text"
|
||||
echo " -v, --version Print the appdwarf version"
|
||||
}
|
||||
|
||||
dwarf() {
|
||||
mkdwarfs -i "$1" -o "$(basename "$1").sh" -B$back "${@:2}" --header $HEAD
|
||||
chmod +x "$(basename "$1").sh"
|
||||
mkdwarfs -i "$1" -o "$(realpath "$1").sh" -B$back "${@:2}" --header $HEAD
|
||||
chmod +x "$(realpath "$1").sh"
|
||||
}
|
||||
|
||||
appimage() {
|
||||
|
|
Loading…
Reference in a new issue