Files
openswarm/publish-win.ps1
Eric 4ce4dec33c [eric] windows polish + bump 1.0.25: publish-win.ps1 mirror of publish.sh + run.ps1 windows dev launcher, build-app-win.ps1 warns 8s if Mac latest-mac.yml missing in
v<version> release before -Publish, python-env cache skip via OPENSWARM_REBUILD_PYTHON, pip stderr wrapped to suppress PS5.1 NativeCommandError; analytics APP_VERSION
  auto-derived from electron/package.json (single source of truth); OnboardingModal renders Connected state for already-active providers; gitignore fix for backend/.venv.
  Bumps 1.0.25 - first version that ships Mac and Windows together.
2026-04-21 21:53:48 -07:00

27 lines
821 B
PowerShell

# Windows mirror of publish.sh.
# Builds + signs + publishes the Windows installer to the GitHub Release
# matching electron/package.json's version.
#
# Usage:
# pwsh publish-win.ps1 (or) powershell -File publish-win.ps1
#
# Prereqs:
# - .env.windows populated with AZURE_* secrets + GH_TOKEN
# - For a clean release flow: run `bash publish.sh` on a Mac first so
# the v<version> release exists with Mac assets. The build script will
# warn if the Mac release isn't found.
$ErrorActionPreference = 'Stop'
$ScriptDir = Split-Path -Parent $PSCommandPath
$BuildScript = Join-Path $ScriptDir 'scripts\build-app-win.ps1'
if (-not (Test-Path $BuildScript)) {
Write-Error "Cannot find $BuildScript"
exit 1
}
Write-Host "Publishing Windows release..."
& $BuildScript -Publish
exit $LASTEXITCODE