From 1f7d6d1ed28dd8c2c616838f7dd3300f312a4452 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 5 Aug 2026 22:11:19 +0800 Subject: [PATCH] ci: build the msi template with a sentinel revision preprocess.py appends a build-time revision as the fourth version field, so a template built without one would bake the CI clock into every customer's package. Revision 0 marks the field as the patcher's to fill in, and makes the template deterministic. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Q7fBdTwziR5BHTkSz7Tzcm --- .github/workflows/flutter-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml index f2fb40643..b0e826042 100644 --- a/.github/workflows/flutter-build.yml +++ b/.github/workflows/flutter-build.yml @@ -429,7 +429,9 @@ jobs: Set-Content -Path "$assets/$a" -Value 'placeholder' -NoNewline } pushd ./res/msi - python preprocess.py --arp --template -d ../../rustdesk-msi-template --app-name RDAPPNAM + # revision 0 is a sentinel: the patcher replaces the fourth version field + # with a fresh build number per customer, as building per customer did. + python preprocess.py --arp --template --revision-version 0 -d ../../rustdesk-msi-template --app-name RDAPPNAM $msiPlatform = if ('${{ matrix.job.arch }}' -eq 'aarch64') { 'ARM64' } else { 'x64' } msbuild msi.sln -t:clean -p:Configuration=Release -p:Platform=$msiPlatform msbuild msi.sln -p:Configuration=Release -p:Platform=$msiPlatform /p:TargetVersion=Windows10