forked from ori-community/wotw-rando-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.bat
55 lines (49 loc) · 1.92 KB
/
compile.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
:: change these if necessary
set MSBuildPath="C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\MsBuild.exe"
set JavaHome="C:\Program Files\Java\AzJDK_8\jdk1.8.0_265\"
cd "%~dp0"
if "%1"=="compileonly" (
cd "projects"
cd "SeedGen"
copy ".\loc_data.csv" "C:\moon\loc_data.csv" /Y
copy ".\areas.wotw" "C:\moon\areas.wotw" /Y
cd "..\.."
copy ".\VERSION" "C:\moon\VERSION" /Y
".\ext\ahk\Ahk2Exe.exe" /in ".\RandoSettings.ahk" /icon ".\WotwRando.ico" /out "C:\moon\RandoSettings.exe"
echo built RandoSettings.exe
".\ext\ahk\Ahk2Exe.exe" /in ".\projects/AutoTracker/OriAutoTracker.ahk" /icon ".\WotwRando.ico" /out "C:\moon\ItemTracker.exe"
echo built ItemTracker.exe
".\ext\ahk\Ahk2Exe.exe" /in ".\WotwRando.ahk" /icon ".\WotwRando.ico" /out "C:\moon\WotwRando.exe"
echo built WotwRando.exe
echo AHK compile complete!
timeout /t 3
exit 0
)
if NOT "%1"=="buildonly" (
cd "projects\SeedGen"
call sbt assembly --java-home=%JavaHome%
cd "..\.."
timeout /t 3
)
:: Either change paths or build yourself and run with nobuild
if NOT "%1"=="nobuild" (
%MSBuildPath% -targets -p:Configuration=RelWithDebInfo -p:Platform=x64 C:\Users\WorstMirari\Documents\GitHub\OriWotwRandomizerClient\build\win64\WotWRandomizer.sln
IF ERRORLEVEL 1 (
echo BUILD FAILED
timeout /t 14
exit 1
)
)
copy "projects\SeedGen\loc_data.csv" "C:\moon\loc_data.csv" /Y
copy "projects\SeedGen\areas.wotw" "C:\moon\areas.wotw" /Y
copy "VERSION" "C:\moon\VERSION" /Y
if NOT "%1"=="buildonly" (
".\ext\ahk\Ahk2Exe.exe" /in ".\RandoSettings.ahk" /icon ".\WotwRando.ico" /out "C:\moon\RandoSettings.exe"
echo built RandoSettings.exe
".\ext\ahk\Ahk2Exe.exe" /in ".\projects/AutoTracker/OriAutoTracker.ahk" /icon ".\WotwRando.ico" /out "C:\moon\ItemTracker.exe"
echo built ItemTracker.exe
".\ext\ahk\Ahk2Exe.exe" /in ".\WotwRando.ahk" /icon ".\WotwRando.ico" /out "C:\moon\WotwRando.exe"
echo built WotwRando.exe
echo BUILD SUCCESS!
timeout /t 10
)