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

ci(windows): fail closed if Electron output omits Next runtime packages

davoodmehraban89 committed Oct 17, 2026 at 00:05 UTC e1b182f8fe03fd811f8885039ab669ad0b756f4d
1 file changed +5
.github/workflows/windows-vm-treasury-lab.yml
+5
@@ -118,6 +118,11 @@ jobs:
118 if($LASTEXITCODE -ne 0){throw 'PREPARE_STANDALONE_FAILED'}
119 npm exec -- electron-builder --dir --win --x64 --publish never
120 if($LASTEXITCODE -ne 0){throw 'UNPACKED_ELECTRON_BUILD_FAILED'}
121 + $modules=Join-Path $env:LAB_SOURCE 'release/win-unpacked/resources/standalone/node_modules'
122 + foreach($module in @('next','react','react-dom')){
123 + if(!(Test-Path (Join-Path $modules "$module/package.json"))){throw ("PACKAGED_RUNTIME_MODULE_MISSING_"+$module)}
124 + }
125 + 'Verified runtime Next, React, ReactDOM modules physically exist in packaged resources.' >> $env:GITHUB_STEP_SUMMARY
126 - name: Probe real unpacked Electron EXE before the portable bootstrapper
127 if: steps.native.outputs.buildable == 'true'
128 shell: pwsh