mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-10 06:06:47 +00:00
appimage conversion: properly handle architecture
This commit is contained in:
parent
ac9a5e0990
commit
d65e78c2d5
4
appdwarf
4
appdwarf
|
@ -71,7 +71,7 @@ case "$1" in
|
||||||
shift
|
shift
|
||||||
zzexe "$@" ;;
|
zzexe "$@" ;;
|
||||||
--version | -v )
|
--version | -v )
|
||||||
tput setaf 2; echo appdwarf 2022.11.15
|
tput setaf 2; echo appdwarf 2022.12.13
|
||||||
tput setaf 6; echo Built by July 🏳️🌈; exit ;;
|
tput setaf 6; echo Built by July 🏳️🌈; exit ;;
|
||||||
-* | '' )
|
-* | '' )
|
||||||
echo "Usage: appdwarf [option] [APP/FILE/FOLDER/URL] [compression options]"
|
echo "Usage: appdwarf [option] [APP/FILE/FOLDER/URL] [compression options]"
|
||||||
|
@ -103,7 +103,7 @@ if [ ! -d "$1" ]; then # directory doesn't exist, see if this is an appimage
|
||||||
echo "Assuming this is a GitHub repo..."
|
echo "Assuming this is a GitHub repo..."
|
||||||
app="$(echo "${1%/}"/releases | sed 's|github.com|api.github.com/repos|')"
|
app="$(echo "${1%/}"/releases | sed 's|github.com|api.github.com/repos|')"
|
||||||
shift
|
shift
|
||||||
set -- "$(curl "$app" | grep -v arm | grep -om1 https.\*AppImage)" "$@"
|
set -- "$(curl "$app" | grep -om1 https.\*"$(uname -m)".AppImage)" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
app=$(basename "$1") # actually try to get the appimage
|
app=$(basename "$1") # actually try to get the appimage
|
||||||
|
|
Loading…
Reference in a new issue