mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-17 18:25:42 +02:00
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.
27 lines
821 B
PowerShell
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
|