Skip to content

Commit d1d6099

Browse files
committed
win_installer: update building. all files needed are collected in a single folder. the 'deploy' artifact will contain all the files.
1 parent 45a5ae6 commit d1d6099

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed

.github/workflows/release-windows.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,27 @@ jobs:
8181
- name: Build CLI x64 release configuration using MSBuild
8282
run: msbuild -m cppcheck.sln /t:cli /p:Configuration=Release-PCRE /p:Platform=x64
8383

84+
- name: Collect files
85+
run: |
86+
move Build\gui win_installer\files
87+
mkdir win_installer\files\addons
88+
copy addons\*.* win_installer\files\addons
89+
mkdir win_installer\files\cfg
90+
copy cfg\*.cfg win_installer\files\cfg
91+
mkdir win_installer\files\platforms
92+
copy platforms\*.xml win_installer\files\platforms
93+
copy bin\cppcheck.exe win_installer\files
94+
copy bin\cppcheck-core.dll win_installer\files
95+
copy externals\z3\bin\libz3.dll win_installer\files
96+
mkdir win_installer\files\help
97+
xcopy /s gui\help win_installer\files\help
98+
del win_installer\files\translations\*.qm
99+
move gui\*.qm win_installer\files\translations
100+
101+
84102
- name: Build Installer
85103
run: |
86104
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
87-
mkdir bin
88-
xcopy /S Build\gui bin
89105
cd win_installer
90106
REM Read ProductVersion
91107
for /f "tokens=4 delims= " %%a in ('find "ProductVersion" productInfo.wxi') do set PRODUCTVER=%%a
@@ -102,4 +118,4 @@ jobs:
102118
- uses: actions/upload-artifact@v2
103119
with:
104120
name: deploy
105-
path: Build\gui
121+
path: win_installer\files

win_installer/config.wxi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Include>
3-
<?define CliBuildDir = "..\bin" ?>
4-
<?define GuiBuildDir = "..\bin" ?>
5-
<?define GuiHelpDir = "..\gui\help" ?>
6-
<?define TranslationsDir = "..\gui" ?>
7-
<?define CfgsDir = "..\cfg" ?>
8-
<?define PtfsDir = "..\platforms" ?>
9-
<?define AddonsDir = "..\addons" ?>
10-
<?define QtDllDir = "..\bin" ?>
11-
<?define Z3DllDir = "..\externals\z3\bin" ?>
3+
<?define CliBuildDir = "files" ?>
4+
<?define GuiBuildDir = "files" ?>
5+
<?define GuiHelpDir = "files\help" ?>
6+
<?define TranslationsDir = "files\translations" ?>
7+
<?define CfgsDir = "files\cfg" ?>
8+
<?define PtfsDir = "files\platforms" ?>
9+
<?define AddonsDir = "files\addons" ?>
10+
<?define QtDllDir = "files" ?>
11+
<?define Z3DllDir = "files" ?>
1212

1313
<?if $(var.Platform) = x64 ?>
1414
<?define CrtMergeModule = "$(env.VCToolsRedistDir)\MergeModules\Microsoft_VC142_CRT_x64.msm" ?>

0 commit comments

Comments
 (0)