Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@soundyogi
Forked from javimosch/install_ionic_compiler.sh
Created September 2, 2018 23:27
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 soundyogi/b30e7c00047d16bb3a1c6b21bf2f1f0e to your computer and use it in GitHub Desktop.
Save soundyogi/b30e7c00047d16bb3a1c6b21bf2f1f0e to your computer and use it in GitHub Desktop.
Cloud9 Free VM (2048mb Storage) + Android Cordova Ionic Compiler
#vm machine needs nodejs
#download sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
rm android-sdk_r24.2-linux.tgz
mv android-sdk-linux/ android
#install essential sdk components
~/workspace/android/tools/android update sdk -u --all --filter 2,4,168
#install enviroment dependencies
sudo apt-get install lib32stdc++6
sudo apt-get install lib32z1
#install ionic
npm install -g cordova ionic@beta
cd ~/workspace
#free some space (you may need to make more of this)
sudo rm -r /home/ubuntu/.gradle/caches/*
sudo rm -r /var/cache/*
#create demo app
ionic start myApp tabs
cd ~/workspace/myApp
#install hot push stuff
cordova plugin add cordova-hot-code-push-plugin
cordova plugin add cordova-hot-code-push-local-dev-addon
npm install -g cordova-hot-code-push-cli
#repeat: you may need to install dependencies again
sudo apt-get install lib32stdc++6
sudo apt-get install lib32z1
#you my need to free space again
#do ionic build android somewhere here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment