Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow AppImage generation in aarch64 build hosts #4410

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

rodriguezst
Copy link
Contributor

AppImageTool no longer hardcoded to x86_64 to allow generation of AppImage files on aarch64 build hosts

@rodriguezst rodriguezst force-pushed the rodriguezst-appimage-aarch64 branch from 1e569af to a7c965b Compare March 11, 2024 21:00
It was harcoded to x86_64 and was failing to generate AppImage files on aarch64 build hosts
@rodriguezst rodriguezst force-pushed the rodriguezst-appimage-aarch64 branch from a7c965b to b405a44 Compare March 12, 2024 20:10
@@ -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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Maybe move it to var to not repeat yourself?

#!/bin/sh
APPIMAGETOOLARCH="$(uname -m)"
APPIMAGETOOLURL="https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-${APPIMAGETOOLARCH}.AppImage"

...

mv "@SLIC3R_APP_KEY@-${APPIMAGETOOLARCH}.AppImage" "${APP_IMAGE}"
chmod +x "${APP_IMAGE}"

Copy link
Owner

@SoftFever SoftFever Mar 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good suggestion.
But since it's only used in two places, it's fine ;)

Copy link
Owner

@SoftFever SoftFever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good
Thank you

@SoftFever SoftFever merged commit db2f50b into SoftFever:main Mar 13, 2024
@rodriguezst rodriguezst deleted the rodriguezst-appimage-aarch64 branch March 16, 2024 07:32
@Aquassarim
Copy link

Thank you very much for this change.
No more fiddling around at the end to generate the AppImage file now.
Everything works from A to Z first time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants