33 lines
859 B
Ruby
33 lines
859 B
Ruby
cask "aifun" do
|
|
version "0.8.2"
|
|
sha256 "02a7b737ff56a1eb08d92c07a9ce0e144166aa4ed4b29e28057417a8ea5bdc30"
|
|
|
|
url "https://static.aifun.kapokcloud.com/v#{version}/AiFun_#{version}_macos.dmg",
|
|
verified: "static.aifun.kapokcloud.com/"
|
|
name "AiFun"
|
|
desc "AI chat and painting app"
|
|
homepage "https://getaifun.com/"
|
|
|
|
livecheck do
|
|
url "https://static.aifun.kapokcloud.com/updater/updater.json"
|
|
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
|