homebrew-cask/Casks/gifox.rb

23 lines
958 B
Ruby

cask 'gifox' do
version '2.1.4,020104.00'
sha256 '846695e5e5e563d9982033c4dafb990a954ec31f29b94ad408c382097a894d37'
# 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