Skip to content

Instantly share code, notes, and snippets.

@fwenzel
Created March 11, 2014 19:33
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 fwenzel/9493323 to your computer and use it in GitHub Desktop.
Save fwenzel/9493323 to your computer and use it in GitHub Desktop.
Demo script for cordovasample
#!/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