Hello everyone! This article I will guide you to export the game to console platforms such as Windows, Linux, MacOS, … and the mobile platform is Android! The goal is for players to install and play games for you to design.
| Join the channel Telegram belong to Anonyviet 👉 Link 👈 |
Before Export, create a simple Hello World program as follows:
![[Godot Engine] Export to Windows, Linux, MacOS, Android 24 [Godot Engine] Export to Windows, Linux, MacOS, Android 23](https://anonyviet.com/wp-content/uploads/2020/08/1-1-1.png)
1. Windows
First you go to Project -> Export
![[Godot Engine] Export to Windows, Linux, MacOS, Android 25 [Godot Engine] Export to Windows, Linux, MacOS, Android 24](https://anonyviet.com/wp-content/uploads/2020/08/2.png)
Next choose Window Desktop!
![[Godot Engine] Export to Windows, Linux, MacOS, Android 26 [Godot Engine] Export to Windows, Linux, MacOS, Android 25](https://anonyviet.com/wp-content/uploads/2020/08/3.png)
You enter the basic information such as game names, version (version), icon game, 64 or 32 -bit chip architecture
![[Godot Engine] Export to Windows, Linux, MacOS, Android 27 [Godot Engine] Export to Windows, Linux, MacOS, Android 26](https://anonyviet.com/wp-content/uploads/2020/08/4-1.png)
Then select the road and export only!
![[Godot Engine] Export to Windows, Linux, MacOS, Android 28 [Godot Engine] Export to Windows, Linux, MacOS, Android 27](https://anonyviet.com/wp-content/uploads/2020/08/5.png)
Note that when the export will have 2 files is .exe is .pck. You have to leave these 2 files and the path to run the game!
![[Godot Engine] Export to Windows, Linux, MacOS, Android 29 [Godot Engine] Export to Windows, Linux, MacOS, Android 28](https://anonyviet.com/wp-content/uploads/2020/08/6.png)
2. Linux
You still go to Project -> Export and select Add to Linux!
![[Godot Engine] Export to Windows, Linux, MacOS, Android 30 [Godot Engine] Export to Windows, Linux, MacOS, Android 29](https://anonyviet.com/wp-content/uploads/2020/08/7.png)
Linux is simpler. You do not need to enter the basic information, just choose the path and export directly right away!
![[Godot Engine] Export to Windows, Linux, MacOS, Android 31 [Godot Engine] Export to Windows, Linux, MacOS, Android 30](https://anonyviet.com/wp-content/uploads/2020/08/8-1.png)
Like Windows. Linux also exports 2 files: .x86_64 and .pck. And you definitely have to leave these 2 files in the same folder. To run the game on Linux, you execute the following 2 commands:
1 is the grant of the file: chmod +x
2 is running the game: ./
![[Godot Engine] Export to Windows, Linux, MacOS, Android 32 [Godot Engine] Export to Windows, Linux, MacOS, Android 31](https://anonyviet.com/wp-content/uploads/2020/08/9-2.png)
3. MacOS
You go to Project -> Export and Add MacOS
![[Godot Engine] Export to Windows, Linux, MacOS, Android 33 [Godot Engine] Export to Windows, Linux, MacOS, Android 32](https://anonyviet.com/wp-content/uploads/2020/08/10.png)
Then fill out the basic information as follows:
![[Godot Engine] Export to Windows, Linux, MacOS, Android 34 [Godot Engine] Export to Windows, Linux, MacOS, Android 33](https://anonyviet.com/wp-content/uploads/2020/08/11.png)
In which Identifier is a symbol (identifier) to distinguish applications on macOS
After entering the basic information, you choose to lead to Export only it will have a .dmg format!
![[Godot Engine] Export to Windows, Linux, MacOS, Android 35 [Godot Engine] Export to Windows, Linux, MacOS, Android 34](https://anonyviet.com/wp-content/uploads/2020/08/12.png)
For Windows or MacOS you just click and start running normally!
4. Download Export Template
The need for Export Game is that you have to download Export Template!
First you go to Editor -> Manage Export Template
![[Godot Engine] Export to Windows, Linux, MacOS, Android 36 [Godot Engine] Export to Windows, Linux, MacOS, Android 35](https://anonyviet.com/wp-content/uploads/2020/08/13-1.png)
Method 1: You download directly from Godot Engine
![[Godot Engine] Export to Windows, Linux, MacOS, Android 37 [Godot Engine] Export to Windows, Linux, MacOS, Android 36](https://anonyviet.com/wp-content/uploads/2020/08/14.png)
Method 2: You download the compression package from the website
![[Godot Engine] Export to Windows, Linux, MacOS, Android 38 [Godot Engine] Export to Windows, Linux, MacOS, Android 37](https://anonyviet.com/wp-content/uploads/2020/08/15-1-1.png)
When the download is finished, select Install from File!
![[Godot Engine] Export to Windows, Linux, MacOS, Android 39 [Godot Engine] Export to Windows, Linux, MacOS, Android 38](https://anonyviet.com/wp-content/uploads/2020/08/16.png)
When the installation of the Export Template will have the following interface:
![[Godot Engine] Export to Windows, Linux, MacOS, Android 40 [Godot Engine] Export to Windows, Linux, MacOS, Android 39](https://anonyviet.com/wp-content/uploads/2020/08/17-2.png)
5. Android
First you download Android Studio here: https://deloper.android.com/studio
Then download JDK here (encourage JDK 8): https://www.oracle.com/java/technologies/javase/javase-jdk8-download.html
When the download is finished, you should install Android Studio and JDK on the device
Next you need to create the debug.keystore file with the command below:
keytool -keyalg RSA -genkeypair -alias androiddebugkey -keypass android -keystore debug.keystore -storepass android -dname "CN=Android Debug,O=Android,C=US" -validity 9999 -deststoretype pkcs12
For Windows, you use CMD and Linux and MacOS, use Terminal (Note: To run the keytool you must successfully install JDK)
When the command is successfully executed, you will get the Debug.keystore file at your personal archive folder (user)
To export the game on Android (.APK) You need:
- ADB SDK from Andorid Studio
- Jarsigner from JDK
- Debug.keystore
Now we have 3 things above. Just proceed to setup for Godot.
You go to Editor -> Settings -> Android. Choose the link to the 3 files above!
![[Godot Engine] Export to Windows, Linux, MacOS, Android 41 [Godot Engine] Export to Windows, Linux, MacOS, Android 40](https://anonyviet.com/wp-content/uploads/2020/08/18.png)
So you can be ready to export to Android!
Go to Project -> Export select Add Android and fill out the basic information like the way Export above!
![[Godot Engine] Export to Windows, Linux, MacOS, Android 42 [Godot Engine] Export to Windows, Linux, MacOS, Android 41](https://anonyviet.com/wp-content/uploads/2020/08/19.png)
When the import is finished, proceed to select Export.
You can also turn on the developer mode on your phone, plug in the cable and export directly!
Note before Export you must set the viewport to correct the device! Refer to the previous articles for more.
This article has also ended its basic Godot Engine series! Thank you for taking the time to watch!
Video Export Android: https://www.youtube.com/watch?v=BBWHDVIX_5M








