Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Cordova Build and Cordova Prepare

Tags:

cordova

Is there any difference between Cordova Build Android and Cordova Prepare Android Commands ? Reference is added here

like image 547
user3592479 Avatar asked Sep 29 '14 07:09

user3592479


People also ask

What does Cordova prepare do?

cordova prepare command Transforms config. xml metadata to platform-specific manifest files, copies icons & splashscreens, copies plugin files for specified platforms so that the project is ready to build with each native SDK.

What's the difference between ionic build and ionic prepare?

1. ionic prepare copies all files from the www folder into the target platform's www folder. 2. ionic build also does this, but also builds the app's source code so that it can be run on a simulator/emulator or a device.

What are the prerequisites for Cordova build?

To develop Cordova applications with MobileFirst features, you must have the Apache Cordova command-line interface installed. You must have version 6.1. 1. You might want to use other development tools that support Apache Cordova as part of your development environment.


1 Answers

Prepare copies your www assets and any plugins into the appropriate platform folder. Build actually then compiles this into the binary for that platform.

You would use prepare if you planned on doing a build with the platform's tools (Eclipse, XCode, etc) and maybe want to modify something first.

like image 194
Raymond Camden Avatar answered Oct 12 '22 09:10

Raymond Camden