Created
March 11, 2014 19:33
-
-
Save fwenzel/9493323 to your computer and use it in GitHub Desktop.
Demo script for cordovasample
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
#!/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/ | |
rm -rf cordovasample | |
echo ">>> cordova create cordovasample" | |
cordova create cordovasample | |
cd cordovasample | |
read | |
rm -rf www | |
echo ">>> git clone git://github.com/JasonWeathersby/cordovasample.git www" | |
git clone git://github.com/JasonWeathersby/cordovasample.git www | |
read | |
# Add our platform | |
echo ">>> cordova platform add firefoxos" | |
cordova platform add firefoxos | |
read | |
# Install all relevant plugins | |
echo ">>> cordova plugin add org.apache.cordova.camera [...]" | |
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 | |
read | |
# "Compile" the app into the platforms/firefoxos/www directory | |
echo ">>> cordova prepare" | |
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