Skip to content

Commit 04073a8

Browse files
committed
Windows release: tweaks
1 parent 5cbed04 commit 04073a8

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/release-windows.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
6161
- name: Build x64 release GUI
6262
run: |
63-
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
63+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
6464
cd gui
6565
qmake HAVE_QCHART=yes
6666
nmake release
@@ -78,10 +78,11 @@ jobs:
7878

7979
- name: Build Installer
8080
run: |
81+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
8182
mkdir bin
8283
xcopy /S Build\gui bin
8384
cd win_installer
84-
msbuild -m cppcheck.wixproj /p:Platform=x64,ProductVersion=0.123
85+
msbuild -m cppcheck.wixproj /p:Platform=x64,ProductVersion=2.0.${{ github.run_number }}
8586
8687
- uses: actions/upload-artifact@v2
8788
with:

win_installer/config.wxi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
<?define PtfsDir = "..\platforms" ?>
88
<?define AddonsDir = "..\addons" ?>
99
<?define QtDllDir = "..\bin" ?>
10+
<?define Z3DllDir = "..\externals\z3\bin" ?>
1011

1112
<?if $(var.Platform) = x64 ?>
12-
<?define CrtMergeModule = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Redist\MSVC\14.25.28508\MergeModules\Microsoft_VC142_CRT_x64.msm" ?>
13+
<?define CrtMergeModule = "$(env.VCToolsRedistDir)\MergeModules\Microsoft_VC142_CRT_x64.msm" ?>
1314
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
1415
<?else?>
15-
<?define CrtMergeModule = "$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC142_CRT_x86.msm" ?>
16+
<?define CrtMergeModule = "$(env.VCToolsRedistDir)\MergeModules\Microsoft_VC142_CRT_x86.msm" ?>
1617
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
1718
<?endif?>
1819
</Include>

win_installer/cppcheck.wxs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
<Component Id='cppcheckcore.dll' Guid='$(var.cppcheckcoreGUID)'>
2121
<File Id='cppcheckcore.dll' Name='cppcheck-core.dll' DiskId='1' Source='$(var.CliBuildDir)\cppcheck-core.dll' KeyPath='yes' />
2222
</Component>
23+
<Component Id='libz3.dll' Guid='$(var.libz3GUID)'>
24+
<File Id='libz3.dll' Name='libz3.dll' DiskId='1' Source='$(var.Z3DllDir)\libz3.dll' KeyPath='yes' />
25+
</Component>
2326
<Component Id='cppcheck.exe' Guid='$(var.cppcheckGUID)'>
2427
<File Id='cppcheck.exe' Name='cppcheck.exe' DiskId='1' Source='$(var.CliBuildDir)\cppcheck.exe' KeyPath='yes' />
2528
</Component>
@@ -142,6 +145,7 @@
142145
Display='expand' Level='1' AllowAdvertise='no' ConfigurableDirectory='INSTALLDIR' >
143146
<Feature Id='CppcheckCore' Display='hidden' AllowAdvertise='no' Title='Cppcheck-Core' Description='Cppcheck core components' Level='1'>
144147
<ComponentRef Id='cppcheckcore.dll' />
148+
<ComponentRef Id='libz3.dll' />
145149
<ComponentRef Id='RegistryEntries' />
146150
<ComponentRef Id='BaseDocs' />
147151
<ComponentRef Id='MandatoryCfgs' />

win_installer/productInfo.wxi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<?define ProductUpgradeCode = "7E94124C-1CD1-433F-9423-4614E52300DD" ?>
1111
<?define cppcheckGUID = "1c31dd76-07fa-4420-b9b5-5463742d6a48" ?>
1212
<?define cppcheckcoreGUID = "1c31dd76-07fa-4420-b9b5-5463742d6a49" ?>
13+
<?define libz3GUID = "5d603179-e59a-4c47-b0aa-531ab1f6456b" ?>
1314
<?define addonsGUID = "25DACF7E-4D29-890D-433F-6922A391C312" ?>
1415
<?define guiGUID = "D7D3FF8E-1D82-4215-B59B-4715A748C540" ?>
1516
<?define qtplatformsGUID = "E2C326DF-11F1-4C05-A955-2E2D2A3B0515" ?>

0 commit comments

Comments
 (0)