Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6894d6

Browse files
committed
Enables building compressed Windows test builds with --pack option.
1 parent a0bcfaf commit e6894d6

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

Tools/msi/build.bat

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ set BUILDX86=
77
set BUILDX64=
88
set BUILDDOC=
99
set BUILDPX=
10+
set BUILDPACK=
1011

1112
:CheckOpts
1213
if "%~1" EQU "-h" goto Help
1314
if "%~1" EQU "-x86" (set BUILDX86=1) && shift && goto CheckOpts
1415
if "%~1" EQU "-x64" (set BUILDX64=1) && shift && goto CheckOpts
1516
if "%~1" EQU "--doc" (set BUILDDOC=1) && shift && goto CheckOpts
1617
if "%~1" EQU "--test-marker" (set BUILDPX=1) && shift && goto CheckOpts
18+
if "%~1" EQU "--pack" (set BUILDPACK=1) && shift && goto CheckOpts
1719

1820
if not defined BUILDX86 if not defined BUILDX64 (set BUILDX86=1) && (set BUILDX64=1)
1921

@@ -41,6 +43,9 @@ set BUILD_CMD="%D%bundle\snapshot.wixproj"
4143
if defined BUILDPX (
4244
set BUILD_CMD=%BUILD_CMD% /p:UseTestMarker=true
4345
)
46+
if defined BUILDPACK (
47+
set BUILD_CMD=%BUILD_CMD% /p:Pack=true
48+
)
4449

4550
if defined BUILDX86 (
4651
"%PCBUILD%win32\python.exe" "%D%get_wix.py"
@@ -56,9 +61,10 @@ if defined BUILDX64 (
5661
exit /B 0
5762

5863
:Help
59-
echo build.bat [-x86] [-x64] [--doc] [-h] [--test-marker]
64+
echo build.bat [-x86] [-x64] [--doc] [-h] [--test-marker] [--pack]
6065
echo.
6166
echo -x86 Build x86 installers
6267
echo -x64 Build x64 installers
6368
echo --doc Build CHM documentation
6469
echo --test-marker Build installers with 'x' markers
70+
echo --pack Embed core MSIs into installer

Tools/msi/bundle/snapshot.wixproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@
99
<Import Project="..\msi.props" />
1010

1111
<PropertyGroup>
12+
<DefineConstants Condition="'$(Pack)' != 'true'">
13+
$(DefineConstants);CompressMSI=no;
14+
</DefineConstants>
15+
<DefineConstants Condition="'$(Pack)' == 'true'">
16+
$(DefineConstants);CompressMSI=yes;
17+
</DefineConstants>
1218
<DefineConstants>
1319
$(DefineConstants);
14-
CompressMSI=no;
1520
CompressPDB=no;
1621
CompressMSI_D=no;
1722
</DefineConstants>

0 commit comments

Comments
 (0)