Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
ci(windows): verify distinct portable and NSIS installers from target-specific naming
davoodmehraban89 committed
Oct 17, 2026 at 00:20 UTC
f9e84be0ca8dc3902c7cbec93f13e9544a141bbd
1 file changed
+4
-1
.github/workflows/windows-vm-treasury-lab.yml
+4
-1
@@ -145,10 +145,13 @@ jobs:
145
shell: pwsh
146
run: |
147
Set-Location $env:LAB_SOURCE
148
- npm exec -- electron-builder --win nsis --x64 --publish never '--config.artifactName=TreasuryFlow-Setup-${version}-Windows-${arch}.${ext}'
148
+ npm exec -- electron-builder --win nsis --x64 --publish never
149
if($LASTEXITCODE -ne 0){throw 'NSIS_BUILD_FAILED'}
150
$setups=@(Get-ChildItem "$env:LAB_SOURCE/release/TreasuryFlow-Setup-*-Windows-x64.exe" -ErrorAction SilentlyContinue)
151
if($setups.Count -ne 1 -or $setups[0].Length -lt 1000000){throw 'NSIS_SETUP_EXE_MISSING'}
152
+ $portables=@(Get-ChildItem "$env:LAB_SOURCE/release/TreasuryFlow-*-Windows-x64.exe" -File | Where-Object {$_.Name -notlike '*Setup*'})
153
+ if($portables.Count -ne 1){throw 'PORTABLE_ARTIFACT_WAS_OVERWRITTEN'}
154
+ if((Get-FileHash $portables[0].FullName -Algorithm SHA256).Hash -eq (Get-FileHash $setups[0].FullName -Algorithm SHA256).Hash){throw 'SETUP_PORTABLE_COLLISION'}
155
'Setup EXE built; full unattended install acceptance remains a separate test.' >> $env:GITHUB_STEP_SUMMARY
156
- name: Silent-install genuine NSIS Setup and run its installed EXE
157
if: steps.native.outputs.buildable == 'true'