mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 18:44:05 +09:00
Application build scripts
This commit is contained in:
25
buildapp/build_app_mac_arm.sh
Executable file
25
buildapp/build_app_mac_arm.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
cd "${0%/*}"
|
||||
SRCFILES="terrarummac_arm"
|
||||
DESTDIR="out/TerrarumMac.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/Terrarum.sh $DESTDIR/Contents/MacOS/
|
||||
chmod +x $DESTDIR/Contents/MacOS/Terrarum.sh
|
||||
|
||||
# Copy over a Java runtime
|
||||
cp -r "../out/$RUNTIME" $DESTDIR/Contents/MacOS/
|
||||
|
||||
# Copy over all the assets and a jarfile
|
||||
cp -r "../assets" $DESTDIR/Contents/MacOS/
|
||||
cp -r "../out/TerrarumBuild.jar" $DESTDIR/Contents/MacOS/assets/
|
||||
|
||||
echo "Build successful: $DESTDIR"
|
||||
Reference in New Issue
Block a user