From 394e877b9e45d14fd1291e163495ecb7ed533064 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:29:50 +0100 Subject: [PATCH] feat: first-party homebrew --- .github/workflows/update-cask.yml | 37 +++++++++++++++++++++++++++++++ Casks/plezy.rb | 35 +++++++++++++++++++++++++++++ README.md | 6 ++++- 3 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/update-cask.yml create mode 100644 Casks/plezy.rb diff --git a/.github/workflows/update-cask.yml b/.github/workflows/update-cask.yml new file mode 100644 index 00000000..14568e55 --- /dev/null +++ b/.github/workflows/update-cask.yml @@ -0,0 +1,37 @@ +name: Update Homebrew Cask + +on: + release: + types: [published] + workflow_dispatch: + +jobs: + update-cask: + runs-on: macos-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - name: Download and hash release + id: release + run: | + VERSION="${{ github.event.release.tag_name || github.ref_name }}" + curl -L -o plezy-macos.dmg \ + "https://github.com/edde746/plezy/releases/download/$VERSION/plezy-macos.dmg" + SHA256=$(shasum -a 256 plezy-macos.dmg | cut -d' ' -f1) + echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "sha256=$SHA256" >> $GITHUB_OUTPUT + + - name: Update cask + run: | + sed -i '' "s/version \".*\"/version \"${{ steps.release.outputs.version }}\"/" Casks/plezy.rb + sed -i '' "s/sha256 \".*\"/sha256 \"${{ steps.release.outputs.sha256 }}\"/" Casks/plezy.rb + + - name: Commit + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add Casks/plezy.rb + git diff --staged --quiet || git commit -m "chore: update cask to ${{ steps.release.outputs.version }}" + git push diff --git a/Casks/plezy.rb b/Casks/plezy.rb new file mode 100644 index 00000000..7fa29e52 --- /dev/null +++ b/Casks/plezy.rb @@ -0,0 +1,35 @@ +cask "plezy" do + version "1.15.0" + sha256 "f6925cdbccd98651ddbbfb059e823e31cef7990e94d753c3b2b501a413404507" + + url "https://github.com/edde746/plezy/releases/download/#{version}/plezy-macos.dmg" + name "Plezy" + desc "Modern Plex client built with Flutter" + homepage "https://github.com/edde746/plezy" + + livecheck do + url :url + strategy :github_latest + end + + auto_updates true + + app "Plezy.app" + + postflight do + system_command "/usr/bin/xattr", + args: ["-cr", "#{appdir}/Plezy.app"], + sudo: false + end + + uninstall quit: "com.edde746.plezy" + + zap trash: [ + "~/Library/Application Support/com.edde746.plezy", + "~/Library/Caches/com.edde746.plezy", + "~/Library/HTTPStorages/com.edde746.plezy", + "~/Library/Preferences/com.edde746.plezy.plist", + "~/Library/Saved Application State/com.edde746.plezy.savedState", + "~/Library/WebKit/com.edde746.plezy", + ] +end diff --git a/README.md b/README.md index 678398de..ab8a37df 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,11 @@ A modern Plex client for desktop and mobile. Built with Flutter for native perfo - [macOS (Universal)](https://github.com/edde746/plezy/releases/latest/download/plezy-macos.dmg) - [Linux (x64)](https://github.com/edde746/plezy/releases/latest) - .deb, .rpm, .pkg.tar.zst, and portable tar.gz available - [NixOS/Nix](https://github.com/mio-19/nurpkgs/tree/main/pkgs/plezy) - Community package by [@mio-19](https://github.com/mio-19) -- [Homebrew](https://github.com/Tazi0/homebrew-plezy) - Community tap by [@Tazi0](https://github.com/Tazi0) +- **Homebrew** (macOS): + ```bash + brew tap edde746/plezy https://github.com/edde746/plezy + brew install --cask plezy + ``` ## Features