diff options
Diffstat (limited to 'packaging/win/build-node-runtime.ps1')
| -rw-r--r-- | packaging/win/build-node-runtime.ps1 | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/packaging/win/build-node-runtime.ps1 b/packaging/win/build-node-runtime.ps1 index aa5e759..c6a8af1 100644 --- a/packaging/win/build-node-runtime.ps1 +++ b/packaging/win/build-node-runtime.ps1 @@ -156,9 +156,6 @@ Step "default.env copied from QE\" # --- 6. publish ---------------------------------------------------- Move-Item $frozen $OutDir Remove-Item -Recurse -Force $pyiWork, $pyiDist -ErrorAction SilentlyContinue -if ($createdVenv -and -not $KeepBuildVenv) { - Remove-Item -Recurse -Force $BuildVenv -ErrorAction SilentlyContinue -} # --- 7. smoke test ----------------------------------------------- # Capture, do NOT pipe to Select-Object -First: that stops the native process @@ -192,6 +189,19 @@ $expect = [regex]::Match((Get-Content -LiteralPath $initPy -Raw), '__version__\s if (-not $expect) { throw "cannot read __version__ from $initPy" } & (Join-Path $WinDir "smoke-node-runtime.ps1") -Exe $exe -ExpectVersion $expect +# That daemon never signs in to a hub, so it never starts a connection process +# (connection_processes above 1): a frozen node starts those as copies of +# itself, a path no source checkout takes. Both executables, since the Store +# package's node is the windowless one. Run by the build interpreter, which +# has the node's modules for the other end -- hence the venv removed after. +Step "smoke test: the frozen node as a connection process" +& $Python (Join-Path $WinDir "smoke-connection-process.py") $exe (Join-Path $OutDir "meshbay-nodew.exe") +if ($LASTEXITCODE -ne 0) { throw "a frozen connection process did not carry a connection" } + +if ($createdVenv -and -not $KeepBuildVenv) { + Remove-Item -Recurse -Force $BuildVenv -ErrorAction SilentlyContinue +} + $mb = (Get-ChildItem $OutDir -Recurse | Measure-Object Length -Sum).Sum / 1MB Write-Host "" Write-Host ("OK node-runtime ready at {0} ({1:N0} MB)" -f $OutDir, $mb) -ForegroundColor Green |