From 4488e377961224e47cd8c1898ba94f64a2098426 Mon Sep 17 00:00:00 2001 From: E <2974895+eduardomozart@users.noreply.github.com> Date: Sat, 10 Oct 2026 14:44:30 -0300 Subject: [PATCH 1/2] feat: Add DMG casks and bump workflow --- .github/workflows/bump-casks.yml | 19 ++++++++ Casks/sunshine-beta.rb | 48 +++++++++++++++++++ Casks/sunshine.rb | 39 +++++++++++++++ .../github_prerelease_allowlist.json | 3 ++ 4 files changed, 109 insertions(+) create mode 100644 .github/workflows/bump-casks.yml create mode 100644 Casks/sunshine-beta.rb create mode 100644 Casks/sunshine.rb create mode 100644 audit_exceptions/github_prerelease_allowlist.json diff --git a/.github/workflows/bump-casks.yml b/.github/workflows/bump-casks.yml new file mode 100644 index 00000000..3bf7fb99 --- /dev/null +++ b/.github/workflows/bump-casks.yml @@ -0,0 +1,19 @@ +name: Bump Casks + +on: + schedule: + - cron: '0 0 * * *' + repository_dispatch: + types: [bump-casks] + workflow_dispatch: + +jobs: + bump: + runs-on: macos-latest + steps: + - uses: Homebrew/actions/bump-packages@master + with: + token: ${{ secrets.GH_BOT_TOKEN }} + tap: LizardByte/homebrew-homebrew + casks: true + formulae: false diff --git a/Casks/sunshine-beta.rb b/Casks/sunshine-beta.rb new file mode 100644 index 00000000..481f8aa4 --- /dev/null +++ b/Casks/sunshine-beta.rb @@ -0,0 +1,48 @@ +cask "sunshine-beta" do + arch arm: "arm64", intel: "x86_64" + + version "2026.1" + sha256 arm: "341af3294d656e3b045ec740e51d67682dec8f5af032e400c8fd2287feb75445", + intel: "9cc3c46a6fbb33878b30a1bf64c92b21c9704e6378e90e7552b5d4ecdfd9ad4c" + + url "https://github.com/LizardByte/Sunshine/releases/download/v#{version}/Sunshine-macOS-#{arch}.dmg" + name "Sunshine" + desc "Self-hosted game stream host for Moonlight" + homepage "https://app.lizardbyte.dev/Sunshine" + + livecheck do + url :url + regex(/^v?(\d+(?:\.\d+)+)$/i) + strategy :github_releases do |json, regex| + json.map do |release| + next if release["draft"] + + match = release["tag_name"]&.match(regex) + next if match.blank? + + match[1] + end + end + end + + conflicts_with cask: "sunshine" + depends_on macos: :sonoma + + app "Sunshine.app" + + uninstall quit: "dev.lizardbyte.app.Sunshine" + + zap trash: [ + "~/.config/sunshine", + "~/Library/Preferences/dev.lizardbyte.app.Sunshine.plist", + "~/Library/Saved Application State/dev.lizardbyte.app.Sunshine.savedState", + ] + + caveats <<~EOS + #{token} uses the same configuration directory (~/.config/sunshine) as the + lizardbyte/homebrew/sunshine formula. Do not run both at the same time. + + Grant Sunshine access in System Settings > Privacy & Security > Screen Recording + (and Microphone, if streaming audio) the first time it is launched. + EOS +end diff --git a/Casks/sunshine.rb b/Casks/sunshine.rb new file mode 100644 index 00000000..f3e731b4 --- /dev/null +++ b/Casks/sunshine.rb @@ -0,0 +1,39 @@ +cask "sunshine" do + arch arm: "arm64", intel: "x86_64" + + version "2026.9" + sha256 arm: "c011f017b300100f5c51de67abb8380f49484b9d936fb33e714881722ee267ce", + intel: "e344bd61727768e1abec2fc4c8035ed843c914bf6ad15d18bb720c75c87cd1d2" + + url "https://github.com/LizardByte/Sunshine/releases/download/v#{version}/Sunshine-macOS-#{arch}.dmg" + name "Sunshine" + desc "Self-hosted game stream host for Moonlight" + homepage "https://app.lizardbyte.dev/Sunshine" + + livecheck do + url :url + regex(/^v?(\d+(?:\.\d+)+)$/i) + strategy :github_latest + end + + conflicts_with cask: "sunshine-beta" + depends_on macos: :sonoma + + app "Sunshine.app" + + uninstall quit: "dev.lizardbyte.app.Sunshine" + + zap trash: [ + "~/.config/sunshine", + "~/Library/Preferences/dev.lizardbyte.app.Sunshine.plist", + "~/Library/Saved Application State/dev.lizardbyte.app.Sunshine.savedState", + ] + + caveats <<~EOS + #{token} uses the same configuration directory (~/.config/sunshine) as the + lizardbyte/homebrew/sunshine formula. Do not run both at the same time. + + Grant Sunshine access in System Settings > Privacy & Security > Screen Recording + (and Microphone, if streaming audio) the first time it is launched. + EOS +end diff --git a/audit_exceptions/github_prerelease_allowlist.json b/audit_exceptions/github_prerelease_allowlist.json new file mode 100644 index 00000000..4a174007 --- /dev/null +++ b/audit_exceptions/github_prerelease_allowlist.json @@ -0,0 +1,3 @@ +{ + "sunshine-beta": "any" +} From 22589f0b59672af657d9427e0077ec713de8458d Mon Sep 17 00:00:00 2001 From: E <2974895+eduardomozart@users.noreply.github.com> Date: Sat, 10 Oct 2026 14:57:22 -0300 Subject: [PATCH 2/2] chore: Remove standalone bump-casks workflow in favor of centralized action --- .github/workflows/bump-casks.yml | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 .github/workflows/bump-casks.yml diff --git a/.github/workflows/bump-casks.yml b/.github/workflows/bump-casks.yml deleted file mode 100644 index 3bf7fb99..00000000 --- a/.github/workflows/bump-casks.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Bump Casks - -on: - schedule: - - cron: '0 0 * * *' - repository_dispatch: - types: [bump-casks] - workflow_dispatch: - -jobs: - bump: - runs-on: macos-latest - steps: - - uses: Homebrew/actions/bump-packages@master - with: - token: ${{ secrets.GH_BOT_TOKEN }} - tap: LizardByte/homebrew-homebrew - casks: true - formulae: false