add builder and updater

This commit is contained in:
Joey Kimsey
2026-09-12 21:21:28 -04:00
parent 6e42b1012d
commit 1ee2774241
24 changed files with 4115 additions and 10 deletions

20
scripts/release.ps1 Normal file
View File

@ -0,0 +1,20 @@
param([switch]$Publish)
$ErrorActionPreference = 'Stop'
Push-Location (Split-Path $PSScriptRoot -Parent)
try {
# Invalidate any older result even if npm ci or tests fail.
Remove-Item -LiteralPath 'dist/release/release-ready.json' -Force -ErrorAction SilentlyContinue
npm ci
if ($LASTEXITCODE -ne 0) { throw 'Dependency installation failed.' }
npm run release:win
if ($LASTEXITCODE -ne 0) { throw 'Signed release build failed.' }
if ($Publish) {
npm run publish:release -- --upload
} else {
npm run publish:release
}
if ($LASTEXITCODE -ne 0) { throw 'Release verification or publication failed.' }
} finally {
Pop-Location
}