Created
October 2, 2016 11:05
-
-
Save deanrock/e3e4a10dff107722c568fda83b74f755 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# install Xcode Command Line Tools | |
#xcode-select | |
if [ $? -eq 1 ]; then | |
# https://github.com/timsutton/osx-vm-templates/blob/ce8df8a7468faa7c5312444ece1b977c1b2f77a4/scripts/xcode-cli-tools.sh | |
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress; | |
PROD=$(softwareupdate -l | | |
grep "\*.*Command Line" | | |
head -n 1 | awk -F"*" '{print $2}' | | |
sed -e 's/^ *//' | | |
tr -d '\n') | |
softwareupdate -i "$PROD" -v; | |
fi | |
# force utf-u locale | |
echo "export LANG=en_US.UTF-8" >> ~/.profile | |
source ~/.profile | |
# disable software updates | |
sudo softwareupdate --schedule off | |
# install homebrew | |
which brew | |
if [ $? -eq 1 ]; then | |
TRAVIS=true ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
# install ruby 2.3 | |
brew install ruby | |
# install iOS dev related gems | |
sudo gem install xcpretty --no-document | |
sudo gem install xcodeproj --no-document | |
sudo gem install deliver --no-document | |
sudo gem install cocoaseeds --no-document | |
sudo gem install fastlane --no-document | |
# carthage | |
brew install carthage | |
# xcode | |
sudo -E gem install xcode-install --no-document | |
xcversion install 8 | |
# symlink itms for altool: | |
sudo ln -s /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms/ /usr/local/itms | |
# titanium pre-requirements | |
brew install homebrew/versions/node4-lts | |
#java | |
brew tap caskroom/cask | |
brew install Caskroom/cask/java | |
# titanium stuff | |
sudo npm install -g grunt-cli titanium alloy appcelerator tisdk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment