forked from musicbeeremote/mbrc-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
27 lines (21 loc) · 820 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
24
25
@echo Off
set config=%1
if "%config%" == "" (
set config=Release
)
set version=
if not "%PackageVersion%" == "" (
set version=-Version %PackageVersion%
)
IF EXIST "%cd%\build\bin\%config%" (
echo "Removing directory %cd%\build\bin\%config%"
rmdir %cd%\build\bin\%config% /s /q
)
IF NOT "%APPVEYOR%" == "True" (
echo "Restoring NuGet packages"
REM Package restore
tools\nuget.exe restore mbrc-core\packages.config -OutputDirectory %cd%\packages -NonInteractive
tools\nuget.exe restore plugin\packages.config -OutputDirectory %cd%\packages -NonInteractive
)
REM Build
"%programfiles(x86)%\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" MBRC.sln /p:Configuration="%config%";Platform="Any CPU" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false