homebrew-cask/Casks/eqmac.rb

30 lines
1.3 KiB
Ruby
Raw Normal View History

2017-08-06 21:57:44 +08:00
cask 'eqmac' do
2017-11-16 17:54:01 +08:00
version '2.0.6'
sha256 '565544e1c7b12f3cf361176896fd8917857f188ff8b875d2e18e9da8231be79f'
2017-08-06 21:57:44 +08:00
# github.com/romankisil/eqMac was verified as official when first introduced to the cask
url "https://github.com/romankisil/eqMac#{version.major}/releases/download/v#{version}/eqMac#{version.major}.dmg"
appcast "https://github.com/romankisil/eqMac#{version.major}/releases.atom",
2017-11-16 17:54:01 +08:00
checkpoint: '03e18588a03e2b6efb51da18b709589a2dc30df15a717d17581cc09a904bdc1a'
2017-08-06 21:57:44 +08:00
name 'eqMac'
homepage 'https://www.bitgapp.com/eqmac/'
app "eqMac#{version.major}.app"
installer script: {
executable: "#{staged_path}/eqMac#{version.major}.app/Contents/Resources/install_new.sh",
sudo: true,
}
uninstall login_item: "eqMac#{version.major}",
quit: "com.bitgapp.eqMac#{version.major}",
script: {
executable: "#{appdir}/eqMac#{version.major}.app/Contents/Resources/uninstall_app.sh",
sudo: true,
}
zap delete: [
"~/Library/Caches/com.bitgapp.eqMac#{version.major}",
"~/Library/Cookies/com.bitgapp.eqMac#{version.major}.binarycookies",
]
end