From 77b8610005d566386789cf40b769b3210b4972cb Mon Sep 17 00:00:00 2001 From: LucaGerlich Date: Tue, 18 Aug 2026 21:18:46 +0200 Subject: [PATCH] chore: print Homebrew cask fields after a release The cask in LucaGerlich/homebrew-tap needs the new version and the DMG's sha256 after every release. The script now prints both, so updating it is a two-line edit instead of a manual checksum hunt. --- Scripts/release.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Scripts/release.sh b/Scripts/release.sh index e524773..e528dc0 100755 --- a/Scripts/release.sh +++ b/Scripts/release.sh @@ -146,9 +146,17 @@ else echo " generate_appcast --download-url-prefix $DOWNLOAD_PREFIX $DIST" >&2 fi +DMG_SHA="$(shasum -a 256 "$DMG" | cut -d' ' -f1)" + +echo "" +echo "==> Homebrew cask update (LucaGerlich/homebrew-tap, Casks/inputpilot.rb):" +echo " version \"$VERSION\"" +echo " sha256 \"$DMG_SHA\"" + echo "" echo "==> Done. Release checklist:" echo " 1. git tag v$VERSION && git push origin v$VERSION" echo " 2. Create a GitHub Release for v$VERSION and attach: $DMG" echo " 3. Commit the updated appcast.xml to main (the SUFeedURL points at it)." -echo " 4. Verify Gatekeeper on another Mac: spctl --assess --type open --context context:primary-signature -v $DMG" +echo " 4. Update the Homebrew cask with the version and sha256 printed above." +echo " 5. Verify Gatekeeper on another Mac: spctl --assess --type open --context context:primary-signature -v $DMG"