homebrew-cask/Casks/gog-galaxy.rb

32 lines
1.1 KiB
Ruby

cask "gog-galaxy" do
version "2.0.28.7"
sha256 "6bf918cb2036cbd90fe66f33781c99ffca9a82ea7e1777e7c97f84db3cd51e9a"
url "https://cdn.gog.com/open/galaxy/client/galaxy_client_#{version}.pkg"
appcast "https://www.macupdater.net/cgi-bin/extract_text/extract_text_split_easy.cgi?url=https://gog.com/galaxy&encoding=utf-8&user_agent=Macintosh"
name "GOG Galaxy Client"
desc "GOG gaming client"
homepage "https://www.gog.com/galaxy"
auto_updates true
pkg "galaxy_client_#{version}.pkg"
uninstall delete: "/Applications/GOG Galaxy.app",
launchctl: [
"com.gog.galaxy.ClientService",
"com.gog.galaxy.commservice",
"com.gog.galaxy.autoLauncher",
]
zap trash: [
"/Library/LaunchDaemons/com.gog.galaxy.ClientService.plist",
"/Library/PrivilegedHelperTools/com.gog.galaxy.ClientService",
"/Users/Shared/GOG.com",
"~/Library/Application Support/GOG.com",
"~/Library/Preferences/com.gog.galaxy.cef.renderer.plist",
"~/Library/Preferences/com.gog.galaxy.plist",
"~/Library/Saved Application State/com.gog.galaxy.savedState",
]
end