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
This commit is contained in:
rodriguezst 2024-03-13 16:13:31 +01:00 committed by GitHub
parent 0e78891671
commit db2f50b844
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}