Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
gdevelop5:publishing:android_and_ios_with_cordova [2018/10/21 03:54]
rikazu Compiling the Cordova project
gdevelop5:publishing:android_and_ios_with_cordova [2018/10/21 12:00]
4ian
Line 17: Line 17:
 ## Compiling into a Cordova App ## Compiling into a Cordova App
  
-To be able to build the exported Cordova project, you need to have NodeJS installed on your system [[https://​nodejs.org/​en/​]]. Then install Cordova by typing on the command prompt or terminal ​(npm install -g cordova). +To be able to build the exported Cordova project, you need to have NodeJS installed on your system [[https://​nodejs.org/​en/​]]. Then install Cordova by typing on the command prompt or terminal 
 + 
 +``` 
 +npm install -g cordova ​ 
 +```
  
 After that, navigate to your Cordova project'​s directory and type this on the command prompt or terminal: ​ After that, navigate to your Cordova project'​s directory and type this on the command prompt or terminal: ​
  
-  * (cordova platform add iosif you want to export your game to iOS. +  * `cordova platform add iosif you want to export your game to iOS. 
-  * (cordova platform add androidif you want to export your game to Android.+  * `cordova platform add androidif you want to export your game to Android.
  
 This will create new folders on your project'​s directory: This will create new folders on your project'​s directory:
  
-  * [platforms] the parent folder for all the platforms. +  * _platforms/​ios_: ​compiled iOS project of your game. 
-  * [ios] compiled iOS project of your game. +  * _platforms/​android_: ​compiled android project of your game, which can be imported on Android Studio or other IDEs.
-  * [android] ​compiled android project of your game, which can be imported on Android Studio or other IDEs.+
  
 Once you have specified what platform you want your game to be exported to, you can now build the Cordova project. Type on the command prompt or terminal either: Once you have specified what platform you want your game to be exported to, you can now build the Cordova project. Type on the command prompt or terminal either:
  
-  * (cordova buildthis will build your project to all the platforms you have. +  * `cordova build`: this will build your project to all the platforms you have. 
-  * (cordova build iosthis will only build your project into an iOS executable, that can be used to install your game on iOS devices. +  * `cordova build ios`: this will only build your project into an iOS executable, that can be used to install your game on iOS devices. 
-  * (cordova build androidthis will only build your project into an Android executable (apk), that can be used to install your game on Android devices.+  * `cordova build android`: this will only build your project into an Android executable (apk), that can be used to install your game on Android devices.
  
 ## Export to other platforms (Web, Windows, macOS, Linux) ## Export to other platforms (Web, Windows, macOS, Linux)
  
 See the [[gdevelop5:​publishing|other export options]] to learn how to publish your game on other platforms! See the [[gdevelop5:​publishing|other export options]] to learn how to publish your game on other platforms!