Created
September 13, 2016 23:24
-
-
Save javimosch/cce60728a1e3edf66daae7b0f225cea0 to your computer and use it in GitHub Desktop.
Cloud9 Free VM (2048mb Storage) + Android Cordova Ionic Compiler
This file contains 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
#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
A more detailed article about this can be found here