Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

ci(windows): diagnose unpacked Electron before expensive portable packaging

davoodmehraban89 committed Oct 16, 2026 at 23:49 UTC 4cc23821d0e47d3792a7a9aac7bc7215aa5c3ae9
1 file changed +10 -3
.github/workflows/windows-vm-treasury-lab.yml
+10 -3
@@ -109,20 +109,27 @@ jobs:
109 }else{
110 'buildable=true' >> $env:GITHUB_OUTPUT
111 }
112 - - name: Package real Windows x64 portable EXE
112 + - name: Prepare real unpacked Electron without slow portable packaging
113 if: steps.native.outputs.buildable == 'true'
114 shell: pwsh
115 run: |
116 Set-Location $env:LAB_SOURCE
117 node scripts/prepare-standalone.mjs
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'}
119 + npm exec -- electron-builder --dir --win --x64 --publish never
120 + if($LASTEXITCODE -ne 0){throw 'UNPACKED_ELECTRON_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: Package real Windows x64 portable EXE
127 + if: steps.native.outputs.buildable == 'true'
128 + shell: pwsh
129 + run: |
130 + Set-Location $env:LAB_SOURCE
131 + npm exec -- electron-builder --win portable --x64 --publish never
132 + if($LASTEXITCODE -ne 0){throw 'DESKTOP_PORTABLE_BUILD_FAILED'}
133 - name: Launch actual packaged EXE and check local readiness/UI
134 if: steps.native.outputs.buildable == 'true'
135 shell: pwsh