File: build_installer.bat

package info (click to toggle)
barrier 2.1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,716 kB
  • sloc: cpp: 55,243; xml: 274; objc: 140; ansic: 120; sh: 68; makefile: 7
file content (35 lines) | stat: -rw-r--r-- 1,090 bytes parent folder | download
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
@echo off
set WIX_ROOT=C:\Program Files (x86)\WiX Toolset v3.11

set savedir=%cd%
cd /d %~dp0

if not exist build\bin\Release goto buildproject

cd build\installer
if ERRORLEVEL 1 goto buildproject

echo Building 64-bit Windows installer...
"%WIX_ROOT%\bin\candle.exe" -nologo -arch x64 -dConfiguration=Release -dPlatform=x64 -ext WixUtilExtension -ext WixFirewallExtension Product.wxs -o Barrier.wixobj
if ERRORLEVEL 1 goto failed
"%WIX_ROOT%\bin\light.exe" -nologo -ext WixUtilExtension -ext WixFirewallExtension -ext WixUIExtension Barrier.wixobj -o bin\Barrier.msi
if ERRORLEVEL 1 goto failed
echo Build completed successfully
goto done

:buildproject
echo To build a 64-bit Windows installer:
echo  - set Q_BUILD_TYPE=Release in build_env.bat
echo  - also set other environmental overrides necessary for your build environment
echo  - run clean_build.bat to build Barrier and verify that it succeeds
echo  - re-run this script to create the installation package
goto done

:failed
echo Build failed

:done
set WIX_ROOT=

cd /d %savedir%
set savedir=