homebrew-cask/Casks/h/hapigo.rb

31 lines
901 B
Ruby
Raw Normal View History

cask "hapigo" do
2023-12-28 22:14:03 +08:00
version "2.12.0"
2024-01-02 16:03:12 +08:00
sha256 "e80bf8ab2b5c05194278b54488232ef830d18cfe15921e921dc91955753051a8"
2024-01-02 16:03:12 +08:00
url "https://dl.hapigo.com/HapiGo_#{version}.dmg"
name "HapiGo"
desc "Application launcher and productivity software"
homepage "https://www.hapigo.com/"
livecheck do
2023-12-02 13:44:17 +08:00
url "https://hapigo.com/update/cast.plist"
regex(%r{<key>version</key>\s*\n\s*<string>(\d+(?:\.\d+)+)</string>}i)
end
auto_updates true
depends_on macos: ">= :mojave"
app "HapiGo.app"
zap trash: [
"~/Library/Application Support/Hapigo",
"~/Library/Caches/com.xunyong.hapigo",
"~/Library/Caches/Hapigo",
"~/Library/HTTPStorages/com.xunyong.hapigo",
"~/Library/HTTPStorages/com.xunyong.hapigo.binarycookies",
"~/Library/Preferences/com.xunyong.hapigo.plist",
"~/Library/Preferences/com.xunyong.hapigofind.plist",
"~/Library/WebKit/com.xunyong.hapigo",
]
end