Repository navigation
Publish the signed macOS app and its Homebrew cask with every release - #140
Conversation
Lorena-J
left a comment
There was a problem hiding this comment.
Thank you!! I’d request changes before merging. The first RC needs a working upgrade path to stable, and the quick-start instructions should go live once the stable DMGs and Homebrew cask are available. I ran the packaging suite: 29 tests passed and one was skipped. The signed release itself remains untested, and packaging/README.md has a merge conflict with main.
| needs: tools | ||
| uses: ./.github/workflows/macos-app.yml | ||
| with: | ||
| version: ${{ github.ref_name }} |
There was a problem hiding this comment.
The proposed RC and its stable release get the same build version. I checked macos/build-app.sh: both v0.3.0-rc1 and v0.3.0 produce CFBundleVersion=0.3.0. Sparkle compares that value, so someone who installs the RC won’t be offered the stable release. Could we give the stable build a higher build number and test that upgrade path?
|
|
||
| ### The Mac app | ||
|
|
||
| Download the disk image for your Mac from the [latest release](https://github.com/ponytojas/Refract/releases/latest): [Apple silicon](https://github.com/ponytojas/Refract/releases/latest/download/Refract-arm64.dmg) or [Intel](https://github.com/ponytojas/Refract/releases/latest/download/Refract-amd64.dmg) (**Apple menu → About This Mac** says which). Open it and drag **Refract** to **Applications**. Or with Homebrew: |
There was a problem hiding this comment.
The latest stable release has no DMGs yet, and the Homebrew tap has no refract-app cask. Since the first planned release is an RC, it won’t become latest or update the stable tap. Could we publish these quick-start instructions once both installation paths are live?
…-homebrew-cask-and-release
…s to Use-Refract and name the missing appcasts
…-homebrew-cask-and-release
Part of #71. The issue stays open until a tag shows it works end to end: a clean-Mac install from the DMG, and
brew install --cask, which depends on #93.Release
release.ymlcallsmacos-app.yml(jobmacos-app,needs: tools) with the tag,require-signed: trueandtools-artifact: true. The app is built with the tool archives thattools.ymlbuilt and smoke-tested in the same run. If a secret is missing, or signing or notarization fails, the release fails; it never falls back to an ad hoc build. The signing and Sparkle secrets are passed explicitly.releasejob waits for it and refuses to publish unlessRefract-<arch>.dmgandRefract-<arch>.zipare there for arm64 and amd64. The appcast check now always requires both feeds on a full release (the "a release without the app" exception is gone); a prerelease still has none.metadatawaits formacos-apptoo, to generate the cask from the signed disk images.Homebrew cask
refract-appscripts/package-metadata.pywritesrefract-app.rb: per-architecturesha256,url .../v#{version}/Refract-#{arch}.dmg,depends_on macos: :ventura(matchesLSMinimumSystemVersion13.0),auto_updates true(Sparkle). It reads both DMGs before writing anything.zapremoves only what the app can rebuild (caches, WebKit data, HTTPStorages, preferences, saved state, logs), never~/Library/Application Support/Refractor the Keychain key. A caveat says so.homebrewjob also copies it toCasks/refract-app.rb. The formularefract(the CLI) is unchanged.Docs
README: a new "The Mac app" section in Quick start (stable
releases/latest/download/Refract-<arch>.dmglinks, the cask, where data and the key live), and CI and releases.packaging/README.md: the release and the tap. CHANGELOG.Checks
python3 -m unittest scripts/test_packaging.py: 30 tests pass, including new ones: the cask matches the DMGs and the minimum macOS,zapnever touches projects or the key, a missing DMG fails before writing, and the release wires the signed app and the cask.ruby -candbrew stylewith no offenses, andrelease.ymlparses.For the maintainer
HOMEBREW_TAP_TOKENandHOMEBREW_TAP_ENABLEDaren't set. Until they are, copyrefract-app.rbfrom the release toCasks/by hand (packaging/README.md, Homebrew).vX.Y.Z-rc1), to check the DMGs and the cask before a full release becomeslatest, which installed apps read their feed from.