Skip to content

Instantly share code, notes, and snippets.

@deanrock
Created October 2, 2016 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deanrock/e3e4a10dff107722c568fda83b74f755 to your computer and use it in GitHub Desktop.
Save deanrock/e3e4a10dff107722c568fda83b74f755 to your computer and use it in GitHub Desktop.
#!/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