build script update

This commit is contained in:
minjaesong
2024-01-25 03:41:20 +09:00
parent 9df7f28301
commit d71527cff1
6 changed files with 6 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
if (( $EUID == 0 )); then echo "The build process is not meant to be run with root privilege, exiting now." >&2; exit 1; fi
cd "${0%/*}"
APPIMAGETOOL="appimagetool-x86_64.AppImage"
APPIMAGETOOL="appimagetool-aarch64.AppImage" # Note to self: run this on Asahi
SRCFILES="terrarumlinux_arm"
DESTDIR="TerrarumLinux.arm"
RUNTIME="runtime-linux-arm"
@@ -35,7 +35,7 @@ mv $DESTDIR/assets_release $DESTDIR/assets
cp "../out/$JARNAME" $DESTDIR/out/
# Pack everything to AppImage
ARCH=arm_aarch64 "./$APPIMAGETOOL" $DESTDIR "out/$DESTDIR.AppImage" || { echo 'Building AppImage failed' >&2; exit 1; }
"./$APPIMAGETOOL" $DESTDIR "out/$DESTDIR.AppImage" || { echo 'Building AppImage failed' >&2; exit 1; }
chmod +x "out/$DESTDIR.AppImage"
rm -rf $DESTDIR || true
echo "Build successful: $DESTDIR"