excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / s / stash.rb
bloba60b075483123e5bbcf148f509dcc15dc7930397
1 cask "stash" do
2   version "2.7.0,315"
3   sha256 "5a769d6b72562a78281c6d3c919a9994cc115664a3b772527394dab0e43e6066"
5   url "https://mac-release-static.stash.ws/Stash-build-#{version.csv.second}.zip"
6   name "Stash"
7   desc "Network tool based on Clash"
8   homepage "https://stash.ws/"
10   livecheck do
11     url "https://mac-release.stash.ws/appcast.xml"
12     strategy :sparkle
13   end
15   auto_updates true
16   depends_on macos: ">= :big_sur"
18   app "Stash.app"
20   uninstall quit:   "ws.stash.app.mac",
21             delete: [
22               "/Library/LaunchDaemons/ws.stash.app.mac.daemon.helper.plist",
23               "/Library/PrivilegedHelperTools/ws.stash.app.mac.daemon.helper",
24             ]
26   zap trash: [
27     "~/Library/Application Scripts/group.ws.stash.app",
28     "~/Library/Application Scripts/ws.stash.app",
29     "~/Library/Application Scripts/ws.stash.app.mac-LaunchAtLoginHelper",
30     "~/Library/Application Support/Stash",
31     "~/Library/Application Support/ws.stash.app.mac",
32     "~/Library/Caches/ws.stash.app.mac",
33     "~/Library/Caches/ws.stash.app.mac.dashboard",
34     "~/Library/Containers/ws.stash.app.mac-LaunchAtLoginHelper",
35     "~/Library/Group Containers/group.ws.stash.app",
36     "~/Library/HTTPStorages/ws.stash.app.mac",
37     "~/Library/HTTPStorages/ws.stash.app.mac.binarycookies",
38     "~/Library/Preferences/ws.stash.app.mac.plist",
39   ]
40 end