-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
23 lines (23 loc) · 864 Bytes
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
@echo Choose Visual Studio 2022 Edition (after 5s will default to (2) Enterprise):
::https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners#visual-studio-2022-enterprise
::This is because I am poor.
:Reset
@echo (1) Community
@echo (2) Enterprise
@echo (3) Reset Timer
@choice /c:123 /t:5 /d:2
if errorlevel 3 goto Reset
if errorlevel 2 goto Enterprise
if errorlevel 1 goto Community
:Enterprise
set Edition=Enterprise
goto Continue
:Community
set Edition=Community
goto Continue
:Continue
call "C:\Program Files\Microsoft Visual Studio\2022\%Edition%\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
set solutionsFile=".\PluginDarkNpp.sln"
msbuild -m /t:build /p:Configuration=Release;Platform=x64 %solutionsFile%
msbuild -m /t:build /p:Configuration=Release;Platform=Win32 %solutionsFile%