Skip to content

Commit

Permalink
adds rudimentary build script for windows machine
Browse files Browse the repository at this point in the history
  • Loading branch information
DraqueT committed May 17, 2022
1 parent 7165f80 commit 2e8d011
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion winBuild.bat
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
python3 build_image.py -copyDestination "C:\Users\draqu\Google Drive\Permanent_Share\PolyGlotBetas" -java-home-o "C:\Program Files\Java\jdk-17"
echo off
git pull

:: build local
python3 build_image.py -copyDestination "C:\Users\draqu\Google Drive\Permanent_Share\PolyGlotBetas" -java-home-o "C:\Program Files\Java\jdk-17" %1 %2 %3 %4

vmrun start "C:\Users\draqu\OneDrive\Documents\Virtual Machines\Ubuntu_22_PolyGlot\Ubuntu_22_PolyGlot.vmx"

echo "Waiting 25 seconds before running Linux build...
timeout /t 25
echo "Initiating Linux build...

:: build virtual
vmrun -gu polyglot -gp polyglot runProgramInGuest "C:\Users\draqu\OneDrive\Documents\Virtual Machines\Ubuntu_22_PolyGlot\Ubuntu_22_PolyGlot.vmx" -activeWindow "bin/sh" "/home/polyglot/JavaPojects/build.sh"

:: provide build output
type "C:\Users\draqu\Google Drive\Permanent_Share\PolyGlotBetas\out.log"
del "C:\Users\draqu\Google Drive\Permanent_Share\PolyGlotBetas\out.log"

:: Shutdown virtual
vmrun stop "C:\Users\draqu\OneDrive\Documents\Virtual Machines\Ubuntu_22_PolyGlot\Ubuntu_22_PolyGlot.vmx"

0 comments on commit 2e8d011

Please sign in to comment.