7979 cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI=On -DUSE_QT6=On -DWITH_QCHART=On -DBUILD_ONLINE_HELP=On || exit /b !errorlevel!
8080 cmake --build build --target cppcheck-gui --config Release || exit /b !errorlevel!
8181
82+ # TODO: package PDBs
8283 - name : Deploy app
8384 run : |
8485 windeployqt build\bin\Release || exit /b !errorlevel!
@@ -103,24 +104,48 @@ jobs:
103104 name : bin
104105 path : bin
105106
106- - name : Compile misra.py executable
107+ - name : Install missing Python packages
107108 run : |
108109 pip install -U pyinstaller || exit /b !errorlevel!
110+
111+ # TODO: include in installer?
112+ - name : Compile misra.py executable
113+ run : |
109114 cd addons || exit /b !errorlevel!
110115 pyinstaller --hidden-import xml --hidden-import xml.etree --hidden-import xml.etree.ElementTree misra.py || exit /b !errorlevel!
111116 del *.spec || exit /b !errorlevel!
112117
118+ # TODO: include in installer?
119+ - name : Compile cppcheck-htmlreport executable
120+ run : |
121+ cd htmlreport || exit /b !errorlevel!
122+ pyinstaller cppcheck-htmlreport || exit /b !errorlevel!
123+ del *.spec || exit /b !errorlevel!
124+
125+ # TODO: test the compiled Python files
126+
113127 - name : Collect files
114128 run : |
115129 @echo on
116130 move build\bin\Release win_installer\files || exit /b !errorlevel!
131+ copy AUTHORS win_installer\files\authors.txt || exit /b !errorlevel!
132+ copy readme.txt win_installer\files\ || exit /b !errorlevel!
133+ copy win_installer\GPLv3.txt win_installer\files\ || exit /b !errorlevel!
134+ copy externals\picojson\LICENSE win_installer\files\picojson-license.txt || exit /b !errorlevel!
135+ copy externals\simplecpp\LICENSE win_installer\files\simplecpp-license.txt || exit /b !errorlevel!
136+ copy externals\tinyxml2\LICENSE win_installer\files\tinyxml2-license.txt || exit /b !errorlevel!
117137 copy addons\dist\misra\*.* win_installer\files\addons || exit /b !errorlevel!
118138 copy bin\cppcheck.exe win_installer\files || exit /b !errorlevel!
119139 copy bin\cppcheck-core.dll win_installer\files || exit /b !errorlevel!
120140 :: mkdir win_installer\files\help || exit /b !errorlevel!
121141 xcopy /s gui\help win_installer\files\help || exit /b !errorlevel!
142+ copy gui\help\online-help.qhc win_installer\files\ || exit /b !errorlevel!
143+ copy gui\help\online-help.qch win_installer\files\ || exit /b !errorlevel!
144+ del win_installer\files\cfg\*.rng || exit /b !errorlevel!
145+ del win_installer\files\platforms\*.rng || exit /b !errorlevel!
122146 del win_installer\files\translations\*.qm || exit /b !errorlevel!
123147 move build\gui\*.qm win_installer\files\translations || exit /b !errorlevel!
148+ copy htmlreport\dist\cppcheck-htmlreport\*.* win_installer\files || exit /b !errorlevel!
124149 :: copy libcrypto-3-x64.dll and libssl-3-x64.dll
125150 copy %RUNNER_WORKSPACE%\Qt\Tools\OpenSSLv3\Win_x64\bin\lib*.dll win_installer\files || exit /b !errorlevel!
126151
@@ -148,16 +173,25 @@ jobs:
148173 run : |
149174 @echo on
150175 :: del win_installer\files\addons\*.dll || exit /b !errorlevel!
176+ del win_installer\files\addons\*.doxyfile || exit /b !errorlevel!
177+ del win_installer\files\addons\*.md || exit /b !errorlevel!
151178 :: del win_installer\files\addons\*.pyd || exit /b !errorlevel!
152179 :: del win_installer\files\addons\base_library.zip || exit /b !errorlevel!
180+ rmdir /s /q win_installer\files\addons\test || exit /b !errorlevel!
181+ rmdir /s /q win_installer\files\addons\doc || exit /b !errorlevel!
153182 :: rmdir /s /q win_installer\files\bearer || exit /b !errorlevel!
183+ rmdir /s /q win_installer\files\generic || exit /b !errorlevel!
154184 rmdir /s /q win_installer\files\help || exit /b !errorlevel!
155185 rmdir /s /q win_installer\files\iconengines || exit /b !errorlevel!
156186 rmdir /s /q win_installer\files\imageformats || exit /b !errorlevel!
187+ rmdir /s /q win_installer\files\networkinformation || exit /b !errorlevel!
157188 :: rmdir /s /q win_installer\files\printsupport || exit /b !errorlevel!
158189 rmdir /s /q win_installer\files\sqldrivers || exit /b !errorlevel!
190+ rmdir /s /q win_installer\files\tls || exit /b !errorlevel!
159191 ren win_installer\files\translations lang || exit /b !errorlevel!
160192 del win_installer\files\d3dcompiler_47.dll || exit /b !errorlevel!
193+ del win_installer\files\dxcompiler.dll || exit /b !errorlevel!
194+ del win_installer\files\dxil.dll || exit /b !errorlevel!
161195 del win_installer\files\dmake.exe || exit /b !errorlevel!
162196 del win_installer\files\dmake.pdb || exit /b !errorlevel!
163197 :: del win_installer\files\libEGL.dll || exit /b !errorlevel!
0 commit comments