Skip to content

Instantly share code, notes, and snippets.

@ivdma
Created October 30, 2015 11:07
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 ivdma/95fa3362c5e745190665 to your computer and use it in GitHub Desktop.
Save ivdma/95fa3362c5e745190665 to your computer and use it in GitHub Desktop.
install_rubymotion
#!/bin/bash
set -x
set -e
RUBYMOTION_VERSION=$(curl -v -d product=rubymotion -d current_software_version=4.4 -d license_key=$RUBYMOTION_LICENSE -d pre=false https://secure.rubymotion.com/latest_software_version)
if [ ! -e ~/rubymotion/rubymotion-$RUBYMOTION_VERSION.pkg ]; then
# Create ~/rubymotion directory if it does not exist already
mkdir -p ~/rubymotion
# Download latest RubyMotion
curl -v -# $(curl -v -d current_software_version=4.4 -d wanted_software_version=$RUBYMOTION_VERSION -d pre=false -d license_key=$RUBYMOTION_LICENSE -d product=rubymotion https://secure.rubymotion.com/update_software) -o ~/rubymotion/rubymotion-$RUBYMOTION_VERSION.pkg
fi
# Install RubyMotion
sudo installer -verbose -pkg ~/rubymotion/rubymotion-$RUBYMOTION_VERSION.pkg -target /
# Activate RubyMotion
sudo motion activate $RUBYMOTION_LICENSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment