Skip to content

Commit 04763ea

Browse files
committed
Add windows build script (requires 7-zip)
1 parent 4280c93 commit 04763ea

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

scripts/dist-win-main.cmd

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
@echo off
3+
echo.
4+
echo start build...
5+
echo.
6+
7+
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 store
8+
9+
echo.
10+
echo compile the plugs...
11+
12+
msbuild "%~dp0..\HISSToolsFreeze.sln" /t:HISSToolsFreeze-vst2;HISSToolsFreeze-vst3 /p:configuration="release" /p:platform=win32 /v:q /clp:ErrorsOnly /nologo /m || exit /B 1
13+
msbuild "%~dp0..\HISSToolsFreeze.sln" /t:HISSToolsFreeze-vst2;HISSToolsFreeze-vst3 /p:configuration="release" /p:platform=x64 /v:q /clp:ErrorsOnly /nologo /m || exit /B 1
14+
15+
echo zip and move into place...
16+
echo.
17+
18+
if not exist "%~dp0..\build-win" mkdir "%~dp0..\build-win"
19+
if not exist "%~dp0..\build-win\Windows" mkdir "%~dp0..\build-win\Windows"
20+
21+
"C:\Program Files\7-Zip\7z.exe" a -tzip "%~dp0..\build-win\Windows\HISSToolsFreeze_VST2_32bit.zip" "%~dp0..\build-win\vst2\Win32\Release\HISSToolsFreeze.dll" || exit /B 1
22+
"C:\Program Files\7-Zip\7z.exe" a -tzip "%~dp0..\build-win\Windows\HISSToolsFreeze_VST2_64bit.zip" "%~dp0..\build-win\vst2\x64\Release\HISSToolsFreeze.dll" || exit /B 1
23+
"C:\Program Files\7-Zip\7z.exe" a -tzip "%~dp0..\build-win\Windows\HISSToolsFreeze_VST3_32bit.zip" "%~dp0..\build-win\vst3\Win32\Release\HISSToolsFreeze.vst3" || exit /B 1
24+
"C:\Program Files\7-Zip\7z.exe" a -tzip "%~dp0..\build-win\Windows\HISSToolsFreeze_VST3_64bit.zip" "%~dp0..\build-win\HISSToolsFreeze.vst3" || exit /B 1
25+
26+
echo.
27+
echo BUILT SUCCESSFULLY

0 commit comments

Comments
 (0)