phinze/homebrew-cask

View on GitHub
Casks/g/galaxybudsclient.rb

Summary

Maintainability
A
0 mins
Test Coverage
cask "galaxybudsclient" do
  arch arm: "arm64", intel: "x64"

  version "5.1.0"
  sha256 arm:   "569c6c918671fc6d9451c5c544fe3bf72831337b6c20deecfeaa80e0b5dfed7f",
         intel: "58edbc165e4140b8a9d2229d0c92b00fea1dd528032fd5906820403a4e5fcacf"

  url "https://github.com/ThePBone/GalaxyBudsClient/releases/download/#{version}/GalaxyBudsClient_macOS_#{arch}.pkg"
  name "GalaxyBudsClient"
  desc "Unofficial manager for the Buds, Buds+, Buds Live and Buds Pro"
  homepage "https://github.com/ThePBone/GalaxyBudsClient"

  depends_on macos: ">= :monterey"

  pkg "GalaxyBudsClient_macOS_#{arch}.pkg"

  uninstall pkgutil: "me.timschneeberger.galaxybudsclient"

  zap trash: [
    "~/Library/Application Support/GalaxyBudsClient",
    "~/Library/Preferences/me.timschneeberger.galaxybudsclient.plist",
    "~/Library/Saved Application State/me.timschneeberger.galaxybudsclient.savedState",
  ]
end