Skip to content

Add Homebrew cask + auto-bump workflow#1

Merged
ashinno merged 1 commit into
mainfrom
claude/feature-implementation-options-QdA2b
Jun 6, 2026
Merged

Add Homebrew cask + auto-bump workflow#1
ashinno merged 1 commit into
mainfrom
claude/feature-implementation-options-QdA2b

Conversation

@ashinno

@ashinno ashinno commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Implements the Homebrew cask roadmap item so users can install WeChat Multi with brew and get it kept up to date automatically.

What's in here

Casks/wechat-multi.rb — a tappable cask:

  • Pinned to the latest published release, v2.0.0, with the real asset sha256 (01bf16ae…, taken from the v2.0.0 release notes) — ships valid out of the box, not a placeholder.
  • url points at the standard release-download path (…/releases/download/v#{version}/WeChat-Multi-v#{version}.zip), matching the naming the release workflow already produces.
  • livecheck via :github_latest, depends_on macos: ">= :ventura" (matches LSMinimumSystemVersion 13.0), and a zap trash: stanza covering ~/Applications/WeChat Multi, the com.wechatmulti.clone* containers, and the prefs plist — mirroring the manual uninstall steps in the README.
  • caveats explain the ad-hoc-signed first-launch right-click → Open, and the official-WeChat dependency.

.github/workflows/cask.yml — keeps the cask in lockstep with releases. The existing release workflow creates a draft release; when it's published (release: published), this job downloads the attached zip, recomputes the sha256, and commits the bump to main. Also workflow_dispatch-able with a tag input for manual re-syncs. Guards against non-vX.Y.Z tags and no-ops when the cask is already current.

build.yml — added Casks/** to paths-ignore so the automated cask bumps don't trigger the macOS build.

README (en + zh) — documented brew tap + install / upgrade / uninstall (--zap), and removed "Homebrew cask" from the roadmap now that it exists.

How a user installs

brew tap ashinno/wechat-multi https://github.com/ashinno/wechat-multi
brew install --cask wechat-multi

Verification

This is a Linux CI container with no Swift/Xcode and no Homebrew, so I verified what I could here:

  • ruby -c Casks/wechat-multi.rb → Syntax OK
  • Both workflow YAMLs parse
  • Dry-ran the sed bump logic against the cask — both version and sha256 lines rewrite correctly

Not verified here (no Homebrew available): brew audit/brew install --cask against a live macOS machine, and an end-to-end run of the publish-triggered bump. Worth a manual brew install --cask smoke test before merge.

https://claude.ai/code/session_016iLRnVu9GdtixmXEHSVLD8


Generated by Claude Code

- Casks/wechat-multi.rb: tappable cask pinned to v2.0.0 with the real
  release-asset sha256, livecheck against GitHub releases, ventura
  minimum, and a zap stanza covering clones/containers/prefs.
- .github/workflows/cask.yml: on each published release, download the
  zip, recompute sha256, and bump the cask on main (also dispatchable).
- build.yml: ignore Casks/** so cask bumps don't spin up the macOS build.
- README (en + zh): document brew tap + install/upgrade/uninstall, drop
  Homebrew cask from the roadmap now that it exists.
@ashinno ashinno marked this pull request as ready for review June 6, 2026 09:53
@ashinno ashinno merged commit 97af68f into main Jun 6, 2026
2 checks passed
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.

2 participants