-
Notifications
You must be signed in to change notification settings - Fork 0
Platform Specific Deployment
The instructions that follow assume that you have completed the development phase
of an Enyo-based application as well as the optimization phase (i.e., running the
deploy
script and removing any unnecessary files from the project) and that you
are now ready to create a final product for deployment to your platform of choice.
-
Follow the instructions in the PhoneGap Getting Started Guide to install PhoneGap and create a basic iOS PhoneGap app.
-
Now drop your Enyo-based app files into the
www
directory created in step 1. -
Add the following meta tag to
index.html
for proper display on device:<meta name="viewport"; content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
From here you can follow the instructions in the PhoneGap Getting Started Guide to deploy to the simulator or device. To submit your app to the Apple App Store, you'll need to sign up for a developer account and review the documentation provided at http://developer.apple.com.
Finally, if your project requires access to PhoneGap's native functionality, follow the directions in Making Use of PhoneGap’s Native Functions.
-
Follow the instructions in the PhoneGap Getting Started Guide to install PhoneGap and create a basic Android PhoneGap app.
-
Now drop your Enyo-based app files into the
www
directory created in step 1. -
Add the following meta tag to
index.html
for proper display on device:<meta name="viewport"; content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
From here you can follow the instructions in the PhoneGap Getting Started Guide to deploy to the emulator or device. To publish your app on Google Play, you'll need to sign up for a developer account and review the documentation provided at http://developer.android.com.
Finally, if your project requires access to PhoneGap's native functionality, follow the directions in Making Use of PhoneGap’s Native Functions.
-
Create a zip file of your project.
-
Upload the zip file into your PhoneGap Build application (follow the instructions on the Web site).
-
PhoneGap Build outputs application packages for various platforms.
-
Create a
manifest.json
file in your application's root directory, e.g.:{ "name": "Testplate", "version": "1.0", "manifest_version": 1, "description": "Enyo extension.", "app": { "launch": { "local_path": "index.html" } } }
-
In Google Chrome, choose Tools|Extensions, then pick Load Unpacked Extension and select your deployment folder (e.g.,
myapp-deploy
). -
A generic application icon appears on your Chrome Apps page that will invoke this app.
-
Refer to the Chrome documentation for more information on manifest files and the actual packaging of an application.
(Note: These instructions make use of the Intel AppUp(TM) Encapsulator. We suggest that you use Encapsulator 1.0.)
-
Create a zip file of your project. (Note: Make sure this zip contains only the project files and is not a zip of the project folder.)
-
Fill in the fields on the Encapsulator tool as you like. When asked, choose the zip file from step 1.
-
Press the Make It button.
-
When the Encapsulator is done, it will produce a Windows setup file. Run this file to install your application as a native Windows app.
Additional Reading