To run an HTML5 app on a target running QNX Neutrino, you must package it as a .bar file.
The build command interprets your HTML5 and JavaScript code, builds the binaries, and packages the web assets into a .bar file.
You can use the following options with the build command:
To create a .bar file for an HTML5 app, run the build command in your HTML5 project folder. The .bar file can be deployed to your target using these steps:
build --debug
The output from an HTML5 app build looks like the following. The warnings about not having a debug token when you build is expected because debug tokens aren't used for apps on this platform:
[WARN] Using legacy signing keys [INFO] Populating application source [INFO] Parsing config.xml [INFO] Generating output files [WARN] Failed to find debug token. If you have an existing debug token, please copy it to C:\Users\qnxuser\.cordova\blackberry10debugtoken.bar. To generate a new debug token, execute the 'run' command. [INFO] Package created: C:\AppsMedia_html5sdk_141022_1646\html5sdk\CordovaPPSdemo\build\simulator\qnxcarapp.bar [WARN] Failed to find debug token. If you have an existing debug token, please copy it to C:\Users\qnxuser\.cordova\blackberry10debugtoken.bar. To generate a new debug token, execute the 'run' command. [INFO] Package created: C:\AppsMedia_html5sdk_141022_1646\html5sdk\CordovaPPSdemo\build\device\qnxcarapp.bar [INFO] BAR packaging complete
After the build command is finished, the .bar file is found in the following folders:
You can use copy the file to a USB stick and mount it to your target board or use a tool to transfer the file to the target. If you choose the latter, your target must be connected to the same network as your computer. You must get your file to the target to deploy it.
For information about creating a simple HTML5 app using Cordova, see "Creating an HTML5 project." For information about installing the app on your target, see "Installing packaged apps on the target" in Application and Window Management.