* fix: properly emit update metadata for intel macs * refactor: fix broken parsing of quoted values
5.7 KiB
5.7 KiB
Release Checklist
This document covers how to run desktop releases from one tag, first without signing, then with signing.
What the workflow does
- Trigger: push tag matching
v*.*.*. - Runs quality gates first: lint, typecheck, test.
- Builds four artifacts in parallel:
- macOS
arm64DMG - macOS
x64DMG - Linux
x64AppImage - Windows
x64NSIS installer
- macOS
- Publishes one GitHub Release with all produced files.
- Versions with a suffix after
X.Y.Z(for example1.2.3-alpha.1) are published as GitHub prereleases. - Only plain
X.Y.Zreleases are marked as the repository's latest release.
- Versions with a suffix after
- Includes Electron auto-update metadata (for example
latest*.ymland*.blockmap) in release assets. - Publishes the CLI package (
apps/server, npm packaget3) with OIDC trusted publishing. - Signing is optional and auto-detected per platform from secrets.
Desktop auto-update notes
- Runtime updater:
electron-updaterinapps/desktop/src/main.ts. - Update UX:
- Background checks run on startup delay + interval.
- No automatic download or install.
- The desktop UI shows a rocket update button when an update is available; click once to download, click again after download to restart/install.
- Provider: GitHub Releases (
provider: github) configured at build time. - Repository slug source:
T3CODE_DESKTOP_UPDATE_REPOSITORY(formatowner/repo), if set.- otherwise
GITHUB_REPOSITORYfrom GitHub Actions.
- Temporary private-repo auth workaround:
- set
T3CODE_DESKTOP_UPDATE_GITHUB_TOKEN(orGH_TOKEN) in the desktop app runtime environment. - the app forwards it as an
Authorization: Bearer <token>request header for updater HTTP calls.
- set
- Required release assets for updater:
- platform installers (
.exe,.dmg,.AppImage, plus macOS.zipfor Squirrel.Mac update payloads) latest*.ymlmetadata*.blockmapfiles (used for differential downloads)
- platform installers (
- macOS metadata note:
electron-updaterreadslatest-mac.ymlfor both Intel and Apple Silicon.- The workflow merges the per-arch mac manifests into one
latest-mac.ymlbefore publishing the GitHub Release.
0) npm OIDC trusted publishing setup (CLI)
The workflow publishes the CLI with bun publish from apps/server after bumping
the package version to the release tag version.
Checklist:
- Confirm npm org/user owns package
t3(or rename package first if needed). - In npm package settings, configure Trusted Publisher:
- Provider: GitHub Actions
- Repository: this repo
- Workflow file:
.github/workflows/release.yml - Environment (if used): match your npm trusted publishing config
- Ensure npm account and org policies allow trusted publishing for the package.
- Create release tag
vX.Y.Zand push; workflow will:- set
apps/server/package.jsonversion toX.Y.Z - build web + server
- run
bun publish --access public
- set
1) Dry-run release without signing
Use this first to validate the release pipeline.
- Confirm no signing secrets are required for this test.
- Create a test tag:
git tag v0.0.0-test.1git push origin v0.0.0-test.1
- Wait for
.github/workflows/release.ymlto finish. - Verify the GitHub Release contains all platform artifacts.
- Download each artifact and sanity-check installation on each OS.
2) Apple signing + notarization setup (macOS)
Required secrets used by the workflow:
CSC_LINKCSC_KEY_PASSWORDAPPLE_API_KEYAPPLE_API_KEY_IDAPPLE_API_ISSUER
Checklist:
- Apple Developer account access:
- Team has rights to create Developer ID certificates.
- Create
Developer ID Applicationcertificate. - Export certificate + private key as
.p12from Keychain. - Base64-encode the
.p12and store asCSC_LINK. - Store the
.p12export password asCSC_KEY_PASSWORD. - In App Store Connect, create an API key (Team key).
- Add API key values:
APPLE_API_KEY: contents of the downloaded.p8APPLE_API_KEY_ID: Key IDAPPLE_API_ISSUER: Issuer ID
- Re-run a tag release and confirm macOS artifacts are signed/notarized.
Notes:
APPLE_API_KEYis stored as raw key text in secrets.- The workflow writes it to a temporary
AuthKey_<id>.p8file at runtime.
3) Azure Trusted Signing setup (Windows)
Required secrets used by the workflow:
AZURE_TENANT_IDAZURE_CLIENT_IDAZURE_CLIENT_SECRETAZURE_TRUSTED_SIGNING_ENDPOINTAZURE_TRUSTED_SIGNING_ACCOUNT_NAMEAZURE_TRUSTED_SIGNING_CERTIFICATE_PROFILE_NAMEAZURE_TRUSTED_SIGNING_PUBLISHER_NAME
Checklist:
- Create Azure Trusted Signing account and certificate profile.
- Record ATS values:
- Endpoint
- Account name
- Certificate profile name
- Publisher name
- Create/choose an Entra app registration (service principal).
- Grant service principal permissions required by Trusted Signing.
- Create a client secret for the service principal.
- Add Azure secrets listed above in GitHub Actions secrets.
- Re-run a tag release and confirm Windows installer is signed.
4) Ongoing release checklist
- Ensure
mainis green in CI. - Bump app version as needed.
- Create release tag:
vX.Y.Z. - Push tag.
- Verify workflow steps:
- preflight passes
- all matrix builds pass
- release job uploads expected files
- Smoke test downloaded artifacts.
5) Troubleshooting
- macOS build unsigned when expected signed:
- Check all Apple secrets are populated and non-empty.
- Windows build unsigned when expected signed:
- Check all Azure ATS and auth secrets are populated and non-empty.
- Build fails with signing error:
- Retry with secrets removed to confirm unsigned path still works.
- Re-check certificate/profile names and tenant/client credentials.