mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
41 lines
1.3 KiB
Ruby
41 lines
1.3 KiB
Ruby
cask "stash" do
|
|
version "2.5.4,274"
|
|
sha256 "4a5b26d330af2b72b5b1c2abf9251a0e903a3fe5505e99927584bc232631876b"
|
|
|
|
url "https://mac-release-static.stash.ws/Stash-build-#{version.csv.second}.zip"
|
|
name "Stash"
|
|
desc "Network tool based on Clash"
|
|
homepage "https://stash.ws/"
|
|
|
|
livecheck do
|
|
url "https://mac-release.stash.ws/appcast.xml"
|
|
strategy :sparkle
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :big_sur"
|
|
|
|
app "Stash.app"
|
|
|
|
uninstall quit: "ws.stash.app.mac",
|
|
delete: [
|
|
"/Library/LaunchDaemons/ws.stash.app.mac.daemon.helper.plist",
|
|
"/Library/PrivilegedHelperTools/ws.stash.app.mac.daemon.helper",
|
|
]
|
|
|
|
zap trash: [
|
|
"~/Library/Application Scripts/group.ws.stash.app",
|
|
"~/Library/Application Scripts/ws.stash.app",
|
|
"~/Library/Application Scripts/ws.stash.app.mac-LaunchAtLoginHelper",
|
|
"~/Library/Application Support/Stash",
|
|
"~/Library/Application Support/ws.stash.app.mac",
|
|
"~/Library/Caches/ws.stash.app.mac",
|
|
"~/Library/Caches/ws.stash.app.mac.dashboard",
|
|
"~/Library/Containers/ws.stash.app.mac-LaunchAtLoginHelper",
|
|
"~/Library/Group Containers/group.ws.stash.app",
|
|
"~/Library/HTTPStorages/ws.stash.app.mac",
|
|
"~/Library/HTTPStorages/ws.stash.app.mac.binarycookies",
|
|
"~/Library/Preferences/ws.stash.app.mac.plist",
|
|
]
|
|
end
|