From db2f50b844fd65ae060ff3a38a11b165cf987303 Mon Sep 17 00:00:00 2001 From: rodriguezst <2828844+rodriguezst@users.noreply.github.com> Date: Wed, 13 Mar 2024 16:13:31 +0100 Subject: [PATCH] Allow AppImage generation in aarch64 build hosts (#4410) Get arch from build host It was harcoded to x86_64 and was failing to generate AppImage files on aarch64 build hosts --- src/platform/unix/build_appimage.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/unix/build_appimage.sh.in b/src/platform/unix/build_appimage.sh.in index 55581fc007..47162a5bfc 100644 --- a/src/platform/unix/build_appimage.sh.in +++ b/src/platform/unix/build_appimage.sh.in @@ -1,5 +1,5 @@ #!/bin/sh -APPIMAGETOOLURL="https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-x86_64.AppImage" +APPIMAGETOOLURL="https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-$(uname -m).AppImage" APP_IMAGE="@SLIC3R_APP_KEY@_Linux_V@SoftFever_VERSION@.AppImage" @@ -35,5 +35,5 @@ else ../appimagetool.AppImage . $([ ! -z "${container}" ] && echo '--appimage-extract-and-run') fi -mv @SLIC3R_APP_KEY@-x86_64.AppImage ${APP_IMAGE} +mv @SLIC3R_APP_KEY@-$(uname -m).AppImage ${APP_IMAGE} chmod +x ${APP_IMAGE}