2017-08-06 21:57:44 +08:00
|
|
|
cask 'eqmac' do
|
2017-12-03 05:56:05 +08:00
|
|
|
version '2.2'
|
|
|
|
sha256 'ff60579197b52571d9686bbfaec695dfa75797b8a9314fbf69a673bbeb12e1fc'
|
2017-08-06 21:57:44 +08:00
|
|
|
|
2017-12-03 05:56:05 +08:00
|
|
|
# github.com/nodeful/eqMac was verified as official when first introduced to the cask
|
|
|
|
url "https://github.com/nodeful/eqMac#{version.major}/releases/download/V#{version}/eqMac#{version.major}.dmg"
|
2018-06-12 22:37:26 +08:00
|
|
|
appcast "https://github.com/nodeful/eqMac#{version.major}/releases.atom"
|
2017-08-06 21:57:44 +08:00
|
|
|
name 'eqMac'
|
|
|
|
homepage 'https://www.bitgapp.com/eqmac/'
|
|
|
|
|
|
|
|
app "eqMac#{version.major}.app"
|
|
|
|
installer script: {
|
2017-11-27 09:45:52 +08:00
|
|
|
executable: "#{staged_path}/eqMac#{version.major}.app/Contents/Resources/install_driver.sh",
|
2017-08-06 21:57:44 +08:00
|
|
|
sudo: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
uninstall login_item: "eqMac#{version.major}",
|
|
|
|
quit: "com.bitgapp.eqMac#{version.major}",
|
|
|
|
script: {
|
2017-11-27 09:45:52 +08:00
|
|
|
executable: "#{appdir}/eqMac#{version.major}.app/Contents/Resources/uninstall_driver.sh",
|
2017-08-06 21:57:44 +08:00
|
|
|
sudo: true,
|
|
|
|
}
|
|
|
|
|
2017-11-18 17:59:16 +08:00
|
|
|
zap trash: [
|
|
|
|
"~/Library/Caches/com.bitgapp.eqMac#{version.major}",
|
|
|
|
"~/Library/Cookies/com.bitgapp.eqMac#{version.major}.binarycookies",
|
|
|
|
]
|
2017-08-06 21:57:44 +08:00
|
|
|
end
|