mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-16 01:14:04 +09:00
more standalone TerranBASIC executable build files
This commit is contained in:
23
buildapp/build_app_windows_x86.sh
Executable file
23
buildapp/build_app_windows_x86.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
cd "${0%/*}"
|
||||
SRCFILES="tbaswindows_x86"
|
||||
DESTDIR="TerranBASIC_windows.x86.exe"
|
||||
RUNTIME="runtime-windows-x86"
|
||||
|
||||
# Cleanup
|
||||
rm -rf $DESTDIR || true
|
||||
mkdir $DESTDIR
|
||||
|
||||
# Prepare an application
|
||||
cp $SRCFILES/TerranBASIC.bat $DESTDIR/
|
||||
|
||||
# Copy over a Java runtime
|
||||
cp -r "../out/$RUNTIME" $DESTDIR/
|
||||
|
||||
# Copy over all the assets and a jarfile
|
||||
cp -r "../out/TerranBASIC.jar" $DESTDIR/
|
||||
|
||||
# Temporary solution: zip everything
|
||||
zip -r -9 -l "out/$DESTDIR.zip" $DESTDIR
|
||||
rm -rf $DESTDIR || true
|
||||
echo "Build successful: $DESTDIR"
|
||||
Reference in New Issue
Block a user