Skip to content

Instantly share code, notes, and snippets.

@fwenzel
Created March 11, 2014 19:19
Show Gist options
  • Save fwenzel/9493035 to your computer and use it in GitHub Desktop.
Save fwenzel/9493035 to your computer and use it in GitHub Desktop.
Script to clone and build Cordova Sample app
#!/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