Skip to content

feat(preview): add co-installable preview release channel#15

Draft
denolehov wants to merge 1 commit into
mainfrom
preview-channel
Draft

feat(preview): add co-installable preview release channel#15
denolehov wants to merge 1 commit into
mainfrom
preview-channel

Conversation

@denolehov

Copy link
Copy Markdown
Owner

A second build that tracks main, installable alongside stable via Homebrew (brew install denolehov/tap/annot-preview). Modeled on Warp's stable/preview split: same codebase, differentiated at build time.

  • channel.rs: Channel enum (Stable / Preview(sha)), resolved at compile time from ANNOT_CHANNEL / ANNOT_BUILD_SHA. Drives the config dir (preview isolates to ~/.config/annot-preview), window title (CLI + MCP), --version, and output metadata. Env unset => Stable => behavior byte-identical to before.
  • tauri.preview.conf.json: build-time identity override (productName "annot (preview)", identifier .preview, mainBinaryName annot-preview, preview icons).
  • icons-preview/: hue-rotated variant of icons/, generated by scripts/make-preview-icon.py.
  • preview.yml: builds + signs on push to main, publishes a rolling preview prerelease, templates Formula/annot-preview.rb into the tap.
  • release.yml: guard update-homebrew against prerelease tags so RC tags can't clobber the stable annot.rb formula.

@denolehov denolehov force-pushed the preview-channel branch 4 times, most recently from 7006377 to 5583f96 Compare May 16, 2026 18:21
A second build that tracks main, installable alongside stable via
Homebrew (brew install denolehov/tap/annot-preview). Modeled on Warp's
stable/preview split: same codebase, differentiated at build time.

- channel.rs: Channel enum (Stable / Preview(sha)), resolved at compile
  time from ANNOT_CHANNEL / ANNOT_BUILD_SHA. Drives the config dir
  (preview isolates to ~/.config/annot-preview), window title (CLI +
  MCP), --version, and output metadata. Env unset => Stable => behavior
  byte-identical to before.
- tauri.preview.conf.json: build-time identity override (productName
  "annot (preview)", identifier .preview, mainBinaryName annot-preview,
  preview icons).
- icons-preview/: hue-rotated variant of icons/, generated by
  scripts/make-preview-icon.py.
- preview.yml: builds + signs on push to main, publishes a rolling
  preview prerelease, templates Formula/annot-preview.rb into the tap.
- release.yml: guard update-homebrew against prerelease tags so RC
  tags can't clobber the stable annot.rb formula.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant