Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
Verify fixed standalone Next dependency trace before and after electron-builder then test installed Windows EXE
davoodmehraban89 committed
Oct 26, 2026 at 08:07 UTC
bf2a190e21e1dedec4632bb3a080ad67c2c304cf
1 file changed
+6
.github/workflows/v7-nonfinal-windows-nsis-acceptance-once.yml
+6
@@ -48,6 +48,9 @@ jobs:
48
$ErrorActionPreference='Stop'
49
npm run build
50
if($LASTEXITCODE -ne 0){throw 'CI_NEXT_BUILD_FAILED'}
51
+ $sourceRuntime=Join-Path $pwd '.next/standalone/node_modules/next/package.json'
52
+ if(!(Test-Path -LiteralPath $sourceRuntime)){throw 'NEXT_STANDALONE_TRACE_RUNTIME_MISSING_BEFORE_PACKAGING'}
53
+ Write-Host 'GATE_PASS_NEXT_STANDALONE_SOURCE_RUNTIME_PRESENT'
54
node scripts/prepare-standalone.mjs
55
if($LASTEXITCODE -ne 0){throw 'CI_STANDALONE_FAILED'}
56
$env:CSC_IDENTITY_AUTO_DISCOVERY='false'
@@ -55,6 +58,9 @@ jobs:
58
if($LASTEXITCODE -ne 0){throw 'CI_NONFINAL_NSIS_PACKAGING_FAILED'}
59
$exe=@(Get-ChildItem -LiteralPath (Join-Path $pwd 'release') -File -Filter '*.exe')
60
if($exe.Count -ne 1 -or $exe[0].Length -lt 1000000){throw 'CI_NONFINAL_NSIS_SINGLE_EXE_NOT_FOUND'}
61
+ $unpackedRuntime=Join-Path $pwd 'release/win-unpacked/resources/standalone/node_modules/next/package.json'
62
+ if(!(Test-Path -LiteralPath $unpackedRuntime)){throw 'NEXT_STANDALONE_NODE_MODULES_OMITTED_BY_ELECTRON_BUILDER'}
63
+ Write-Host 'GATE_PASS_NEXT_RUNTIME_EXPLICITLY_PRESENT_IN_NSIS_UNPACKED_RESOURCES'
64
Write-Host 'GATE_PASS_NONFINAL_V7_BRANCH_NSIS_BUILT'
65
- name: Install exact NSIS setup and verify desktop on real Windows
66
shell: pwsh