Created
March 11, 2014 19:19
-
-
Save fwenzel/9493035 to your computer and use it in GitHub Desktop.
Script to clone and build Cordova Sample app
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
#!/bin/sh | |
## Script to build Cordova Sample app, as described in this blog post: | |
# https://hacks.mozilla.org/2014/02/building-cordova-apps-for-firefox-os/ | |
# Note, this assumes you have Cordova installed. | |
# More info: http://cordova.apache.org/ | |
cordova create cordovasample | |
cd cordovasample | |
git clone https://github.com/JasonWeathersby/cordovasample.git www | |
# Add our platform | |
cordova platform add firefoxos | |
# Install all relevant plugins | |
cordova plugin add org.apache.cordova.camera | |
cordova plugin add org.apache.cordova.contacts | |
cordova plugin add org.apache.cordova.device | |
cordova plugin add org.apache.cordova.device-motion | |
cordova plugin add org.apache.cordova.device-orientation | |
cordova plugin add org.apache.cordova.dialogs | |
cordova plugin add org.apache.cordova.geolocation | |
cordova plugin add org.apache.cordova.vibration | |
# "Compile" the app into the platforms/firefoxos/www directory | |
cordova prepare | |
# Now deploy or run it in the Firefox App Manager. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment