feat: beta release channel - #90
Closed
frenchie4111 wants to merge 2 commits into
Closed
Conversation
Add `releaseChannel: 'stable' | 'beta'` to the settings slice and surface it in Settings → Updates as a dropdown. `setupAutoUpdater` reads the value once at boot and sets `autoUpdater.channel` + `allowPrerelease` accordingly — beta users get pre-release builds plus any newer stable, stable users never see betas. Channel changes require a restart, noted in the UI. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
`npm run release 1.2.3-beta.1` cuts a beta build. The version regex routes everything: electron-builder gets `--config.publish.channel=beta` (emits `beta-mac.yml` / `beta-linux.yml`), `gh release create` gets `--prerelease`, README + releases.html updates are skipped so the marketing surface stays pointed at the last stable. Promotion to stable happens by running the same command with a plain `X.Y.Z` version — semver puts `1.2.3` above `1.2.3-beta.N` so all users update. Also adds a `--dry-run` flag that surfaces the routing decisions without touching the working tree, gh, or the network. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
releaseChannelsetting (stable/beta) wired through the settings slice, persistence, IPC, and a new dropdown in Settings → Updates.setupAutoUpdaterreads the value once at boot and setsautoUpdater.channel+allowPrereleaseaccordingly. Beta users pullbeta.ymland get pre-releases plus any newer stable; stable users never see betas.npm run release 1.2.3-beta.1cuts a beta build: electron-builder publishes tobeta.yml(mac + linux), the GitHub release is marked--prerelease, and README +site/public/releases.htmlupdates are skipped so the marketing surface keeps pointing at the last stable. Same script promotes by running with a plainX.Y.Zversion.--config.publish.channel=betathrough to electron-builder when needed.--dry-runflag toscripts/release.shthat surfaces the routing decisions without touching the working tree, gh, or the network.Test plan
npm run typechecknpx electron-vite buildnpx vitest run src/shared(settings reducer + 593 other shared tests pass)bash scripts/release.sh 1.2.3-beta.1 --dry-run— reports channel=beta, beta-mac.yml, README/releases.html skipped,--prereleasebash scripts/release.sh 1.2.3 --dry-run— reports channel=latest, latest-mac.yml, README/releases.html applied, no prerelease flagbash scripts/release.sh 1.2.3-beta --dry-run— rejected (missing.N)bash scripts/release.sh 1.2.3-alpha.1 --dry-run— rejected (unknown prerelease shape)<userData>/config.jsonbeta-mac.yml+beta-linux.ymlland on the GitHub release and the release is marked pre-releaseKnown limitation
First-install users can't pick beta from a fresh download — they install a stable build first, then toggle in Settings. Documented in
CLAUDE.md. A dedicated beta install URL can be added later if needed.🤖 Generated with Claude Code