2014-11-14 01:26:52 +08:00
|
|
|
cask :v1 => 'screens-connect' do
|
2015-01-11 23:29:43 +08:00
|
|
|
version '3.2.3'
|
|
|
|
sha256 'bdffd7b7e750d5bcb23d2895588b5d14c8d0cdd5211391d537ee781b43321afc'
|
2014-06-27 08:01:41 +08:00
|
|
|
|
2015-04-26 08:06:29 +08:00
|
|
|
# edovia.com is the official download host per the appcast feed
|
2015-01-11 23:29:43 +08:00
|
|
|
# Original discussion: https://github.com/caskroom/homebrew-cask/pull/8816
|
|
|
|
url "http://download.edovia.com/screensconnect/screensconnect_#{version}.dmg"
|
|
|
|
appcast 'https://screensconnect.com/sparkle/appcast.xml'
|
2015-01-23 06:52:30 +08:00
|
|
|
name 'Screens Connect'
|
2014-06-27 08:01:41 +08:00
|
|
|
homepage 'https://screensconnect.com'
|
2015-01-11 23:29:43 +08:00
|
|
|
license :gratis
|
2014-06-27 08:01:41 +08:00
|
|
|
|
2014-09-10 23:37:06 +08:00
|
|
|
pkg 'Screens Connect.pkg'
|
2014-11-22 22:12:45 +08:00
|
|
|
|
2015-01-11 23:29:43 +08:00
|
|
|
depends_on :macos => '>= :mountain_lion'
|
2014-05-21 09:36:47 +08:00
|
|
|
|
2015-01-11 23:29:43 +08:00
|
|
|
# Uninstall script can fail when trying to remove legacy PKGIDS
|
|
|
|
# Original discussion: https://github.com/caskroom/homebrew-cask/pull/8833
|
|
|
|
uninstall :script => {
|
|
|
|
:executable => 'Uninstall Screens Connect.app/Contents/Resources/sc-uninstaller.tool',
|
|
|
|
:must_succeed => false
|
|
|
|
},
|
|
|
|
:pkgutil => 'com.edovia.pkg.screens.connect.*'
|
2015-03-22 02:32:27 +08:00
|
|
|
|
2014-09-09 20:55:28 +08:00
|
|
|
uninstall_preflight do
|
2014-11-13 08:14:13 +08:00
|
|
|
system '/bin/chmod', '+x', "#{staged_path}/Uninstall Screens Connect.app/Contents/Resources/sc-uninstaller.tool"
|
2014-05-21 09:36:47 +08:00
|
|
|
end
|
2013-11-15 22:09:01 +08:00
|
|
|
end
|