aboutsummaryrefslogtreecommitdiff
path: root/src/setup/setup.cmd
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2022-08-06 15:38:36 -0700
committerRob Mensching <rob@firegiant.com>2022-08-06 18:45:31 -0700
commit3b870b5493458ec6b2febc7dd7a154688a36152f (patch)
tree621693aba27819885bf9e0254e103ba69b6df9ff /src/setup/setup.cmd
parent93df57931e0c260c413bd1036492354c0d8375de (diff)
downloadwix-3b870b5493458ec6b2febc7dd7a154688a36152f.tar.gz
wix-3b870b5493458ec6b2febc7dd7a154688a36152f.tar.bz2
wix-3b870b5493458ec6b2febc7dd7a154688a36152f.zip
Create setup segment and WixAdditionalTools bundle
The setup segment is scheduled after building the shipping WiX files to use and include the current build's tooling. The WixAdditionalTools bundle currently only contains the ThmViewer package but may include additional tools in the future. At this time, the primary purpose is to produce a shipping MSI and bundle from the WiX v4 build process and dogfood the rest of the tooling. Closes 4919
Diffstat (limited to 'src/setup/setup.cmd')
-rw-r--r--src/setup/setup.cmd41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/setup/setup.cmd b/src/setup/setup.cmd
new file mode 100644
index 00000000..8096792b
--- /dev/null
+++ b/src/setup/setup.cmd
@@ -0,0 +1,41 @@
1@setlocal
2@pushd %~dp0
3
4@set _C=Debug
5@set _L=%~dp0..\..\build\logs
6
7:parse_args
8@if /i "%1"=="release" set _C=Release
9@if /i "%1"=="inc" set _INCREMENTAL=1
10@if /i "%1"=="clean" set _INCREMENTAL= & set _CLEAN=1
11@if not "%1"=="" shift & goto parse_args
12
13:: Clean
14@if NOT "%_INCREMENTAL%"=="" call :clean
15@if NOT "%_CLEAN%"=="" goto :end
16
17@echo Building setup %_C%
18
19:: Build
20msbuild -Restore setup.sln -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\setup_build.binlog || exit /b
21
22:: Publish
23
24
25:: Test
26
27
28:: Pack
29
30
31@goto :end
32
33:clean
34@rd /s/q "..\..\build\setup" 2> nul
35@del "..\..\build\artifacts\WixAdditionalTools.*" 2> nul
36@del "..\..\build\logs\pdbs\%_C%\WixAdditionalTools.*" 2> nul
37@exit /b
38
39:end
40@popd
41@endlocal