Skip to content

Commit 8a488ca

Browse files
committed
ci: compact Windows release package
1 parent 1a7dd69 commit 8a488ca

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ jobs:
6363
if (-not $qtPrefix) {
6464
throw "Qt prefix was not found."
6565
}
66-
cmake -S . -B build/release -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$qtPrefix"
66+
$buildType = if ($env:RUNNER_OS -eq "Windows") { "MinSizeRel" } else { "Release" }
67+
cmake -S . -B build/release -G Ninja -DCMAKE_BUILD_TYPE="$buildType" -DCMAKE_PREFIX_PATH="$qtPrefix"
6768
6869
- name: Build
6970
run: cmake --build build/release --parallel
@@ -86,7 +87,18 @@ jobs:
8687
exit 1
8788
fi
8889
cp "$binary_target" "$package_root/"
89-
windeployqt --release --no-translations --no-system-d3d-compiler --no-opengl-sw "$package_root/FluentSerialAssistant.exe"
90+
windeployqt \
91+
--release \
92+
--no-translations \
93+
--no-system-d3d-compiler \
94+
--no-system-dxc-compiler \
95+
--no-compiler-runtime \
96+
--no-opengl-sw \
97+
--no-ffmpeg \
98+
--skip-plugin-types generic,tls,networkinformation,styles \
99+
--exclude-plugins qgif,qjpeg,qico \
100+
"$package_root/FluentSerialAssistant.exe"
101+
rm -f "$package_root"/vc_redist.*.exe
90102
elif [ "${{ runner.os }}" = "macOS" ]; then
91103
app_target="$(find build/release -maxdepth 6 -type d -name 'FluentSerialAssistant.app' | head -n 1 || true)"
92104
if [ -z "$app_target" ]; then

0 commit comments

Comments
 (0)