Last active
August 29, 2015 14:04
-
-
Save jhcarr/c0276b2978b8603c74e3 to your computer and use it in GitHub Desktop.
This document describes the steps required to set up Sencha with Phonegap on Ubuntu 14.04 x64
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
### Ubuntu 14.04, 64-bit | |
### Sencha Touch Environment Setup | |
# Update Java environment and tools | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jdk | |
sudo apt-get install openjdk-7-jre | |
# Double-check version information | |
java -version | |
# Install Apache Ant | |
sudo apt-get install ant | |
# Double-check version information | |
ant -version | |
# Install Ruby 1.9.3 | |
sudo apt-get install ruby1.9.3 | |
# Install curl | |
sudo apt-get install curl | |
# Install git | |
sudo apt-get install git | |
# NodeJS and npm | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs | |
node --version | |
npm --version | |
# If you're not sure you got the right version of NodeJS from apt-get: | |
sudo npm install -g n | |
sudo n stable | |
# Install Phonegap | |
sudo npm install -g phonegap | |
# The Android SDK will require you to add in 32-bit libraries as they will be unavailable on 64-bit Ubuntu installations. | |
sudo apt-get install lib32z1:i386 libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386 | |
## ------------------------- | |
## MANUAL INSTALLATION STEPS | |
## ------------------------- | |
echo "The remaining steps in this setup require GUI installers and cannot be run from a script!" | |
# 1) Download Sencha Touch API | |
# 2) Download Sencha Cmd | |
# 3) Download Android SDK | |
# 4) Unzip all downloads and install them. | |
# 5) Add installed tools to PATH in .bashrc or equivalent environment setup tool | |
# - Sencha Cmd will install to <user home>/bin/Sencha/Cmd/ | |
# - Your tools will need access to the /tools and /platform_tools directores in the Android SDK | |
# 6) Once these tools have been installed, verify that you are able to access sencha tools by running the following commands from the terminal: | |
# - `sencha` | |
# - `adb` | |
# - `android` | |
# 7) Run the Android SDK manager `android` and install Android 4.4.2 (API 19) | |
# 8) To verify that these steps succeeded, create an example Sencha Touch + Phonegap project: | |
# - Recall where you unzipped the Sencha Touch API. That location will be denoted by: <Sencha Touch API> | |
# - Run the command: `sencha -sdk <Sencha Touch API> generate app TestApp ./TestApp | |
# - Navigate into the new ./TestApp directory | |
# - Setup phonegap on the sample project by running `sencha phonegap init com.test.TestApp TestApp` | |
# - Build an android version of the sample project by running `sencha --debug app build native` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment