aboutsummaryrefslogtreecommitdiff
path: root/src/setup/setup.cmd
blob: 2b44b8dbe97c0b58d247418750dda913eab0a8ca (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@setlocal
@pushd %~dp0

@set _C=Debug
@set _L=%~dp0..\..\build\logs

:parse_args
@if /i "%1"=="release" set _C=Release
@if /i "%1"=="inc" set _INC=1
@if /i "%1"=="clean" set _CLEAN=1
@if not "%1"=="" shift & goto parse_args

:: Clean

@if "%_INC%"=="" call :clean
@if NOT "%_CLEAN%"=="" goto :end

@echo Building setup %_C%

:: Build
msbuild -Restore MetadataTask\MetadataTask.csproj -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\setup_task.binlog || exit /b

msbuild -Restore setup.sln -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\setup_build.binlog || exit /b

:: Publish


:: Test


:: Pack


@goto :end

:clean
@rd /s/q "..\..\build\setup" 2> nul
@del "..\..\build\artifacts\wix-cli-x64.*" 2> nul
@del "..\..\build\artifacts\WixAdditionalTools.*" 2> nul
@del "..\..\build\logs\pdbs\%_C%\wix-cli-x64.*" 2> nul
@del "..\..\build\logs\pdbs\%_C%\WixAdditionalTools.*" 2> nul
@exit /b

:end
@popd
@endlocal