Last active
August 29, 2015 14:24
-
-
Save conoro/527d955c74a3361f8d98 to your computer and use it in GitHub Desktop.
Build a Red Hat Mobile Windows 8.1 Forms App locally
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
:: Building a Red Hat Mobile Forms Apps for Windows 8.1 | |
:: | |
:: | |
:: Install Git for Windows (https://git-scm.com/download/win) | |
:: Make sure your SSH Public Key has been uploaded to the Red Hat Mobile Application Platform Studio | |
:: Install node.js 0.10.x (https://nodejs.org/download/) | |
:: Install Cordova (npm install -g cordova) | |
:: Install Visual Studio 2013 (https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx) | |
:: See more info at http://cordova.apache.org/docs/en/4.0.0/guide_platforms_win8_index.md.html | |
:: See matching video at https://vimeo.com/130214184 | |
:: Clone an existing Feedhenry forms app (replace Git URL below with your own) | |
git clone [email protected]:prod-demos-emea/Codeless-Forms-Project-Cordova-Light-Forms-App.git | |
SET APP_NAME=Windows81FormsApp | |
:: Create a new cordova project using the HTML, CSS and JavaScript of the forms app | |
:: Replace Path below with your own | |
call cordova create %APP_NAME% --copy-from Codeless-Forms-Project-Cordova-Light-Forms-App\www | |
cd %APP_NAME% | |
call cordova platform add windows | |
:: Install the jscompat to be able to have dynamic content | |
cd .. | |
git clone https://github.com/MSOpenTech/winstore-jscompat.git | |
copy winstore-jscompat\winstore-jscompat.js %APP_NAME%\www | |
:: Install the 'default' plugins | |
cd %APP_NAME% | |
call cordova plugin add org.apache.cordova.device | |
call cordova plugin add org.apache.cordova.network-information | |
call cordova plugin add org.apache.cordova.battery-status | |
call cordova plugin add org.apache.cordova.device-motion | |
call cordova plugin add org.apache.cordova.device-orientation | |
call cordova plugin add org.apache.cordova.geolocation | |
call cordova plugin add org.apache.cordova.file | |
call cordova plugin add org.apache.cordova.camera | |
call cordova plugin add org.apache.cordova.media | |
call cordova plugin add org.apache.cordova.media-capture | |
call cordova plugin add org.apache.cordova.file-transfer | |
call cordova plugin add org.apache.cordova.dialogs | |
call cordova plugin add org.apache.cordova.vibration | |
call cordova plugin add org.apache.cordova.contacts | |
call cordova plugin add org.apache.cordova.globalization | |
call cordova plugin add https://github.com/feedhenry/cordova-plugin-splashscreen.git | |
call cordova plugin add org.apache.cordova.inappbrowser | |
call cordova plugin add org.apache.cordova.console | |
notepad www\index.html | |
:: add <script src="winstore-jscompat.js"></script> into the head of the document | |
call cordova build windows | |
:: Visual Studio Project in %APP_NAME%\platforms\windows | |
:: Mobile appx binary in %APP_NAME%\platforms\windows\build\phone\debug\anycpu\CordovaApp.Phone_0.0.1.0_Bundle | |
:: To run on Windows Desktop: | |
:: cordova run windows |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment