homebrew-cask/Casks/gifox.rb

23 lines
958 B
Ruby

cask 'gifox' do
version '2.1.3,020103.00'
sha256 '88c324cc28d26b2014600f609bffccd63c105ca1114dc89777f7ea8cd4abe2f3'
# d3si16icyi9iar.cloudfront.net/gifox was verified as official when first introduced to the cask
url "https://d3si16icyi9iar.cloudfront.net/gifox/#{version.after_comma}.dmg"
appcast 'https://www.macupdater.net/cgi-bin/extract_text/download_with_useragent.cgi?url=https://api.gifox.io/appcast?prereleases=false'
name 'gifox'
homepage 'https://gifox.io/'
app 'Gifox.app'
uninstall launchctl: "com.gifox.gifox#{version.major}.agent",
quit: "com.gifox.gifox#{version.major}"
zap trash: [
"~/Library/Application Support/Gifox #{version.major}",
"~/Library/Caches/com.gifox.gifox#{version.major}",
"~/Library/Cookies/com.gifox.gifox#{version.major}.binarycookies",
"~/Library/Preferences/com.gifox.gifox#{version.major}.plist",
]
end