forked from ParadoxGameConverters/paradoxGameConverters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_Vic2ToHoI4_release.bat
19 lines (15 loc) · 1.03 KB
/
build_Vic2ToHoI4_release.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
set /p version=Version Number?:
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
msbuild.exe "Frontend\ParadoxConverters.Frontend\ParadoxConverters.Frontend.sln" /p:Configuration=Release /p:Platform="Any CPU" /m
xcopy "Frontend\ParadoxConverters.Frontend\ParadoxConverters.Frontend\bin\Release" "Vic2ToHoI4-%version%" /Y /E /I
copy "Vic2ToHoI4\Data_Files\Vic2toHoI4DefaultConfiguration.xml" "Vic2ToHoI4-%version%\Configuration\"
copy "Vic2ToHoI4\Data_Files\SupportedConvertersDefault.xml" "Vic2ToHoI4-%version%\Configuration\"
cd Vic2ToHoI4
call "build.bat"
xcopy "Release" "..\Vic2ToHoI4-%version%\Vic2ToHoI4" /Y /E /I
copy "%VS140COMNTOOLS%\..\..\VC\redist\x86\Microsoft.VC140.CRT\msvcp140.dll" "..\Vic2ToHoI4-%version%\Vic2ToHoI4\msvcp140.dll"
copy "%VS140COMNTOOLS%\..\..\VC\redist\x86\Microsoft.VC140.CRT\vcruntime140.dll" "..\Vic2ToHoI4-%version%\Vic2ToHoI4\vcruntime140.dll"
cd ..
cd "Vic2ToHoI4-%version%"
call "%SEVENZIP_LOC%\7z.exe" a -tzip -r "..\Vic2ToHoI4-%version%.zip" "*" -mx5
cd ..