homebrew-cask/Casks/a/aifun.rb

33 lines
858 B
Ruby
Raw Normal View History

cask "aifun" do
version "0.4.0"
sha256 "1c74251ac032800e57aeada210b383b1e5f4dfd34e5493bc6a403478bcdef98f"
url "https://static.aifun.kapokcloud.com/v#{version}/AiFun_#{version}_macos.dmg",
verified: "static.aifun.kapokcloud.com"
name "AiFun"
2023-09-07 20:42:04 +08:00
desc "AI chat and painting app"
homepage "https://getaifun.com/"
livecheck do
url "https://static.aifun.kapokcloud.com/updater/updater.json"
2023-09-07 20:42:04 +08:00
strategy :json do |json|
json["version"].sub("v", "")
end
end
auto_updates true
depends_on macos: ">= :sierra"
app "AiFun.app"
uninstall quit: "com.getaifun"
zap trash: [
"~/Library/Application Scripts/com.getaifun",
"~/Library/Caches/com.getaifun",
"~/Library/Containers/com.getaifun",
"~/Library/Preferences/com.getaifun.plist",
"~/Library/Saved Application State/com.getaifun.savedState",
]
end