Skip to content

Instantly share code, notes, and snippets.

@dbeattie71
Forked from vood/build.sh
Created April 24, 2016 20:06
Show Gist options
  • Select an option

  • Save dbeattie71/1b4daa60f025f982867436283201bddf to your computer and use it in GitHub Desktop.

Select an option

Save dbeattie71/1b4daa60f025f982867436283201bddf to your computer and use it in GitHub Desktop.
#!/usr/sh -e
#clone our private github repo with Xamarin project
git clone git@github.com/our_xamarin_project.git
cd our_xamarin_project
#update homebrew
brew update
#install Xamarin.Studio, Xamarin.iOS, Xamarin.Android, Mono
brew cask install xamarin-mdk xamarin-ios xamarin-studio xamarin-android
#install nuget dependencies
nuget install MoviesPrototype.iOS/packages.config
# The license file is stored in the repo, we need to copy it to the ~/Library/MonoTouch as suggested here https://developer.xamarin.com/guides/ios/getting_started/installation/offline_activation/
cp Licenses/iOS/License.trial ~/Library/MonoTouch
#Now log into the Xamarin developer@connect.com account
~/Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool account login -u "$XAMARIN_USER" -p "$XAMARIN_PASSWORD"
#And finally build the project
~/Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool build MoviesPrototype.iOS/MoviesPrototype.iOS.csproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment