From 2bf946419b471a8041de382ad35a0bde9520e6f5 Mon Sep 17 00:00:00 2001 From: Martin Madsen Date: Fri, 27 Jun 2014 17:05:46 +0200 Subject: [PATCH 1/2] Add Xamarin Platform v5.0.1 (build 3) Xamarin's new app installer to install Xamarin Studio with Xamarin iOS, XamarinAndroid, and Xamarin Mac. --- Casks/xamarin-platform.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Casks/xamarin-platform.rb diff --git a/Casks/xamarin-platform.rb b/Casks/xamarin-platform.rb new file mode 100644 index 000000000000..e7d256789ecb --- /dev/null +++ b/Casks/xamarin-platform.rb @@ -0,0 +1,16 @@ +class XamarinPlatform < Cask + url 'http://download.xamarin.com/Installer/Mac/XamarinInstaller.dmg' + homepage 'http://xamarin.com/platform' + version '5.0.1-build-3' + sha256 '063935ac9c5c5726946614d382c0b412093a961d1473436dfac8b1969e7b7c31' + + after_install do + system '/usr/bin/sudo', '-E', '--', + "#{destination_path}/Install Xamarin.app/Contents/MacOS/Install_Xamarin" + end + + #uninstall :files => [ + # '/Applications/Xamarin Studio.app', + # '~/Library/Developer/Xamarin' + #] +end From 4b032439a347a962dbceab8fea4604165506b78d Mon Sep 17 00:00:00 2001 From: Martin Madsen Date: Fri, 27 Jun 2014 17:35:52 +0200 Subject: [PATCH 2/2] Do not add explicit version numbers in cask --- Casks/xamarin-platform.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/xamarin-platform.rb b/Casks/xamarin-platform.rb index e7d256789ecb..567026719a60 100644 --- a/Casks/xamarin-platform.rb +++ b/Casks/xamarin-platform.rb @@ -1,8 +1,8 @@ class XamarinPlatform < Cask url 'http://download.xamarin.com/Installer/Mac/XamarinInstaller.dmg' homepage 'http://xamarin.com/platform' - version '5.0.1-build-3' - sha256 '063935ac9c5c5726946614d382c0b412093a961d1473436dfac8b1969e7b7c31' + version 'latest' + sha256 :no_check after_install do system '/usr/bin/sudo', '-E', '--',