Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,11 @@ jobs:
echo
echo 'The Release job ran scripts/verify-homebrew-cask.sh before this commit.'
} > /tmp/homebrew-pr.md
if gh pr view "$PR_BRANCH" --json number --jq .number > /dev/null 2>&1; then
gh pr edit "$PR_BRANCH" --title "$title" --body-file /tmp/homebrew-pr.md
# A merged bump pull request keeps the branch name, so an edit to it
# is a no-op that ships nothing. Only an open one is reused.
open_pr="$(gh pr list --head "$PR_BRANCH" --state open --json number --jq '.[0].number // ""')"
if [ -n "$open_pr" ]; then
gh pr edit "$open_pr" --title "$title" --body-file /tmp/homebrew-pr.md
else
gh pr create --base "$BRANCH" --head "$PR_BRANCH" \
--title "$title" --body-file /tmp/homebrew-pr.md
Expand Down
10 changes: 5 additions & 5 deletions packaging/homebrew/Casks/fidget.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Token is the product name. url, app, quit, zap, and the caveat name the
# bundle in one Release disk image; scripts/bump-homebrew-cask.sh rewrites
# them from that tag. livecheck follows GitHub's latest Release.
# Token is the product name. scripts/bump-homebrew-cask.sh rewrites the
# version, sha256, url, app, quit, zap, caveat, and livecheck stanzas from
# one Release disk image; livecheck follows GitHub's latest Release.
cask "fidget" do
version "0.2.0"
sha256 "1572c97ef496e88a1cb3ccd89f81ef92b01d912c1f1ed00d5c16b6dee285a29c"
version "0.6.3"
sha256 "f34a90ba16bbc37ce49ab4404b0c3a20b0c16051bcb731ab368779759bf90872"

url "https://github.com/omesser/fidget/releases/download/v#{version}/Fidget_#{version}_aarch64.dmg"
name "Fidget"
Expand Down
2 changes: 0 additions & 2 deletions scripts/bump-homebrew-cask.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env bash
# Point the Homebrew cask at a GitHub Release tag's Apple Silicon disk image.
# Usage: scripts/bump-homebrew-cask.sh v0.0.1-dev
# scripts/bump-homebrew-cask.sh --check v0.0.1-dev

set -euo pipefail

Expand Down
3 changes: 1 addition & 2 deletions scripts/homebrew-cask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# frozen_string_literal: true

# Check the Homebrew cask against its Release disk image, or rewrite the
# stanzas that track that image: version, checksum, url, app, quit, zap,
# stanzas that track that image: version, sha256, url, app, quit, zap,
# caveat, and livecheck.
# scripts/homebrew-cask.rb verify | bump [--check] <tag>

require "digest"
require "json"
Expand Down
1 change: 0 additions & 1 deletion scripts/verify-homebrew-cask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Download the cask's Release disk image and check the checksum, app,
# bundle id, and that livecheck's latest release is the pinned tag.
# No Homebrew required. macOS with brew also runs brew style.
# Usage: scripts/verify-homebrew-cask.sh

set -euo pipefail

Expand Down
Loading