more standalone TerranBASIC executable build files

This commit is contained in:
minjaesong
2023-04-15 00:48:14 +09:00
parent 9a4e28caa7
commit 9fa543af53
29 changed files with 3723 additions and 262 deletions

24
buildapp/build_app_mac_arm.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
cd "${0%/*}"
SRCFILES="tbasmac_arm"
DESTDIR="out/TerranBASIC_macOS.arm.app"
RUNTIME="runtime-osx-arm"
# Cleanup
rm -rf $DESTDIR || true
mkdir $DESTDIR
mkdir $DESTDIR/Contents
mkdir $DESTDIR/Contents/MacOS
# Prepare an application
cp icns.png $DESTDIR/.icns
cp $SRCFILES/Info.plist $DESTDIR/Contents/
cp $SRCFILES/TerranBASIC.sh $DESTDIR/Contents/MacOS/
chmod +x $DESTDIR/Contents/MacOS/TerranBASIC.sh
# Copy over a Java runtime
cp -r "../out/$RUNTIME" $DESTDIR/Contents/MacOS/
# Copy over all the assets and a jarfile
cp -r "../out/TerranBASIC.jar" $DESTDIR/Contents/MacOS/
echo "Build successful: $DESTDIR"