From d65e78c2d50970d074fd1e5022f2ac1c19d3d8f2 Mon Sep 17 00:00:00 2001 From: Phantop Date: Tue, 13 Dec 2022 15:10:21 -0500 Subject: [PATCH] appimage conversion: properly handle architecture --- appdwarf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appdwarf b/appdwarf index 056a58b..dbc76a6 100755 --- a/appdwarf +++ b/appdwarf @@ -71,7 +71,7 @@ case "$1" in shift zzexe "$@" ;; --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 ;; -* | '' ) 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..." app="$(echo "${1%/}"/releases | sed 's|github.com|api.github.com/repos|')" shift - set -- "$(curl "$app" | grep -v arm | grep -om1 https.\*AppImage)" "$@" + set -- "$(curl "$app" | grep -om1 https.\*"$(uname -m)".AppImage)" "$@" fi app=$(basename "$1") # actually try to get the appimage