-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
gog-galaxy.rb
35 lines (29 loc) 路 1.08 KB
/
gog-galaxy.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
cask "gog-galaxy" do
version "2.0.74.336"
sha256 "634510f8ad52e084efc77e6eec1d63ec83a5e47d8dbaf6d38b47455899762d3c"
url "https://cdn.gog.com/open/galaxy/client/#{version.chomp("a")}/galaxy_client_#{version}.pkg"
name "GOG Galaxy"
desc "Game client"
homepage "https://www.gog.com/galaxy"
livecheck do
url :homepage
regex(%r{href=.*?/galaxy_client_(\d+(?:\.\d+)*a?)\.pkg}i)
end
auto_updates true
pkg "galaxy_client_#{version}.pkg"
uninstall launchctl: [
"com.gog.galaxy.autoLauncher",
"com.gog.galaxy.ClientService",
"com.gog.galaxy.commservice",
],
delete: "/Applications/GOG Galaxy.app"
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