mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
auto zip for .app packaging
This commit is contained in:
@@ -3,7 +3,8 @@ if (( $EUID == 0 )); then echo "The build process is not meant to be run with ro
|
|||||||
|
|
||||||
cd "${0%/*}"
|
cd "${0%/*}"
|
||||||
SRCFILES="terrarummac_arm"
|
SRCFILES="terrarummac_arm"
|
||||||
DESTDIR="out/TerrarumMac.arm.app"
|
APPDIR="./TerrarumMac.arm.app"
|
||||||
|
DESTDIR="out/$APPDIR"
|
||||||
RUNTIME="runtime-osx-arm"
|
RUNTIME="runtime-osx-arm"
|
||||||
|
|
||||||
if [ ! -d "../assets_release" ]; then
|
if [ ! -d "../assets_release" ]; then
|
||||||
@@ -34,4 +35,8 @@ cp -r "../assets_release" $DESTDIR/Contents/MacOS/
|
|||||||
mv $DESTDIR/Contents/MacOS/assets_release $DESTDIR/Contents/MacOS/assets
|
mv $DESTDIR/Contents/MacOS/assets_release $DESTDIR/Contents/MacOS/assets
|
||||||
cp "../out/TerrarumBuild.jar" $DESTDIR/Contents/MacOS/out/
|
cp "../out/TerrarumBuild.jar" $DESTDIR/Contents/MacOS/out/
|
||||||
|
|
||||||
|
cd "out"
|
||||||
|
rm $APPDIR.zip
|
||||||
|
7z a -tzip $APPDIR.zip $APPDIR
|
||||||
|
|
||||||
echo "Build successful: $DESTDIR"
|
echo "Build successful: $DESTDIR"
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ if (( $EUID == 0 )); then echo "The build process is not meant to be run with ro
|
|||||||
|
|
||||||
cd "${0%/*}"
|
cd "${0%/*}"
|
||||||
SRCFILES="terrarummac_x86"
|
SRCFILES="terrarummac_x86"
|
||||||
DESTDIR="out/TerrarumMac.x86.app"
|
APPDIR="./TerrarumMac.x86.app"
|
||||||
|
DESTDIR="out/$APPDIR"
|
||||||
RUNTIME="runtime-osx-x86"
|
RUNTIME="runtime-osx-x86"
|
||||||
|
|
||||||
if [ ! -d "../assets_release" ]; then
|
if [ ! -d "../assets_release" ]; then
|
||||||
@@ -34,4 +35,8 @@ cp -r "../assets_release" $DESTDIR/Contents/MacOS/
|
|||||||
mv $DESTDIR/Contents/MacOS/assets_release $DESTDIR/Contents/MacOS/assets
|
mv $DESTDIR/Contents/MacOS/assets_release $DESTDIR/Contents/MacOS/assets
|
||||||
cp "../out/TerrarumBuild.jar" $DESTDIR/Contents/MacOS/out/
|
cp "../out/TerrarumBuild.jar" $DESTDIR/Contents/MacOS/out/
|
||||||
|
|
||||||
|
cd "out"
|
||||||
|
rm $APPDIR.zip
|
||||||
|
7z a -tzip $APPDIR.zip $APPDIR
|
||||||
|
|
||||||
echo "Build successful: $DESTDIR"
|
echo "Build successful: $DESTDIR"
|
||||||
|
|||||||
Reference in New Issue
Block a user