-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbuild.bat
22 lines (20 loc) · 1.11 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
del /S /F /Q build\*
rmdir /s /q build
mkdir build
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat"
rmdir /s /q x64\Release
MSBuild.exe Zenith.sln /t:Zenith /p:Configuration=Release /p:Platform=x64
rmdir /s /q x86\Release
MSBuild.exe Zenith.sln /t:Zenith /p:Configuration=Release /p:Platform=x86
MSBuild.exe Zenith.sln /t:ZenithInstaller /p:Configuration=Release
rmdir "bin\x64\Release\debug" /s /q
rmdir "bin\x64\Release\Plugins\Assets" /s /q
forfiles /p "bin\x64\Release\Plugins" /c "cmd /c del ..\lib\@file"
del bin\x64\Release\Plugins\PianoFallRender.dll"
rmdir "bin\x86\Release\debug" /s /q
rmdir "bin\x86\Release\Plugins\Assets" /s /q
forfiles /p "bin\x86\Release\Plugins" /c "cmd /c del ..\lib\@file"
del x86\Release\Plugins\PianoFallRender.dll"
powershell -c Compress-Archive -Path "bin\x64\Release\*" -CompressionLevel Optimal -Force -DestinationPath build\Zenithx64.zip
powershell -c Compress-Archive -Path "bin\x86\Release\*" -CompressionLevel Optimal -Force -DestinationPath build\Zenithx86.zip
copy ZenithInstaller\bin\Release\ZenithInstaller.exe build\ZenithInstaller.exe