Build aarch64 linux

This commit is contained in:
dcvz 2024-05-23 09:19:49 +02:00
parent 4ebe71bfcc
commit 0ddebc36ae
2 changed files with 19 additions and 5 deletions

View File

@ -1,4 +1,18 @@
curl -sSfLO "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-static-x86_64.AppImage" # check current arch and map it to either x86_64 or arm_aarch64
ARCH=$(uname -m)
if [ "$ARCH" == "x86_64" ]; then
ARCH="x86_64"
elif [ "$ARCH" == "aarch64" ]; then
ARCH="arm_aarch64"
else
echo "Unsupported architecture: $ARCH"
exit 1
fi
curl -sSfLO "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-static-$ARCH.AppImage"
curl -sSfLO "https://github.com/linuxdeploy/linuxdeploy-plugin-gtk/raw/master/linuxdeploy-plugin-gtk.sh" curl -sSfLO "https://github.com/linuxdeploy/linuxdeploy-plugin-gtk/raw/master/linuxdeploy-plugin-gtk.sh"
chmod a+x linuxdeploy* chmod a+x linuxdeploy*
@ -8,10 +22,10 @@ cp -r assets/ AppDir/usr/bin/
cp icons/512.png AppDir/Zelda64Recompiled.png cp icons/512.png AppDir/Zelda64Recompiled.png
cp .github/linux/Zelda64Recompiled.desktop AppDir/ cp .github/linux/Zelda64Recompiled.desktop AppDir/
./linuxdeploy-static-x86_64.AppImage --appimage-extract "./linuxdeploy-static-$ARCH.AppImage" --appimage-extract
mv squashfs-root/ deploy mv squashfs-root/ deploy
ARCH=x86_64 ./deploy/AppRun --appdir=AppDir/ -d AppDir/Zelda64Recompiled.desktop -i AppDir/Zelda64Recompiled.png -e AppDir/usr/bin/Zelda64Recompiled --plugin gtk ./deploy/AppRun --appdir=AppDir/ -d AppDir/Zelda64Recompiled.desktop -i AppDir/Zelda64Recompiled.png -e AppDir/usr/bin/Zelda64Recompiled --plugin gtk
sed -i 's/exec/#exec/g' AppDir/AppRun sed -i 's/exec/#exec/g' AppDir/AppRun
echo 'cd "$this_dir"/usr/bin/' >> AppDir/AppRun echo 'cd "$this_dir"/usr/bin/' >> AppDir/AppRun
echo './Zelda64Recompiled' >> AppDir/AppRun echo './Zelda64Recompiled' >> AppDir/AppRun
ARCH=x86_64 ./deploy/usr/bin/linuxdeploy-plugin-appimage --appdir=AppDir ./deploy/usr/bin/linuxdeploy-plugin-appimage --appdir=AppDir

View File

@ -19,7 +19,7 @@ jobs:
- run: echo ✓ - run: echo ✓
build-unix: build-unix:
needs: authorize needs: authorize
runs-on: ubuntu-22.04 runs-on: [ ubuntu-22.04, blaze/ubuntu-22.04 ]
strategy: strategy:
matrix: matrix:
type: [ Debug, Release ] type: [ Debug, Release ]