Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
ci: isolate portable bootstrapper failures with direct unpacked Electron gate
davoodmehraban89 committed
Oct 16, 2026 at 23:37 UTC
3d41bf526bc04e046caa88d48d00351efafb773a
1 file changed
+6
.github/workflows/windows-vm-treasury-lab.yml
+6
@@ -118,6 +118,11 @@ jobs:
118
if($LASTEXITCODE -ne 0){throw 'PREPARE_STANDALONE_FAILED'}
119
npm exec -- electron-builder --win portable --x64 --publish never
120
if($LASTEXITCODE -ne 0){throw 'DESKTOP_PORTABLE_BUILD_FAILED'}
121
+ - name: Probe real unpacked Electron EXE before the portable bootstrapper
122
+ if: steps.native.outputs.buildable == 'true'
123
+ shell: pwsh
124
+ run: |
125
+ & "$env:GITHUB_WORKSPACE/scripts/windows-vm-unpacked-smoke.ps1" -SourceRoot "$env:LAB_SOURCE"
126
- name: Launch actual packaged EXE and check local readiness/UI
127
if: steps.native.outputs.buildable == 'true'
128
shell: pwsh
@@ -155,6 +160,7 @@ jobs:
160
$folder=Join-Path $env:RUNNER_TEMP 'treasuryflow-vm-evidence'
161
New-Item -ItemType Directory -Path $folder -Force | Out-Null
162
$checks=@(
163
+ @{file='unpacked-runtime.json';pass='UNPACKED_ELECTRON_HTTP_AND_PROCESS_PASS';check='unpacked_process'},
164
@{file='runtime.json';pass='PACKAGED_PROCESS_AND_HTTP_PASS';check='packaged_runtime'},
165
@{file='installed-runtime.json';pass='NSIS_INSTALL_AND_INSTALLED_RUNTIME_PASS';check='nsis_installed_runtime'},
166
@{file='treasuryflow-native-gui.json';pass='REAL_INSTALLED_ELECTRON_GUI_PASS';check='installed_gui'}