Files
homebrew-cask/Casks/1/115browser.rb
Mike McQuaid aa461148bb Move all remaining casks to sharded subdirectories.
The migration of `orka.rb` and then `o*.rb` has worked well without
complaint so: let's move everything else, too.
2023-08-09 12:08:38 +01:00

31 lines
825 B
Ruby

cask "115browser" do
version "25.0.6.5"
sha256 "3b8a337d19ac1eeba2068fdb3892aa30c5f0d75bbcd3bcf05411596089822878"
url "https://down.115.com/client/mac/115br_#{version}.dmg"
name "115Browser"
name "115浏览器"
desc "Web browser"
homepage "https://pc.115.com/browser.html#mac"
livecheck do
url "https://appversion.115.com/1/web/1.0/api/chrome"
strategy :json do |json|
json["data"]["mac"]["version_code"]
end
end
auto_updates true
depends_on macos: ">= :sierra"
app "115Browser.app"
zap trash: [
"~/Library/Application Support/115Browser",
"~/Library/Caches/115Browser",
"~/Library/Caches/org.115Browser.115Browser",
"~/Library/Preferences/org.115Browser.115Browser.plist",
"~/Library/Saved Application State/org.115Browser.115Browser.savedState",
]
end