Language:
Page Info
Tags:
Skill Level:
Engine Version:
Contributors:
yaakuro

5 - Packaging your Game

Choose your OS:

Up to this point in the tutorial, you've created and deployed your mobile game project to an Android device; however, if you want to make your game distributable, you'll need to package the project. The following steps show you how to package your project for distribution on the Android platform. Before we begin, it's important to note that you're going to package the project in Development mode. It's always a good practice to initially package your game in Development mode for testing purposes. Once you're satisfied with your game, you can package the project in Shipping mode, which tells the engine to strip out console commands, statistics, and profiling tools.

To learn more about the differences between the different build configurations made available in UE4, read through our Build Configurations Reference page.

Packaging a Project

  1. Opening the File menu, scroll down to Package Project, and hover your mouse curser over Android before selecting Android (ETC1).

    Click for full image.

  2. After the Open Directory menu appears, create a new folder entitled Android_Builds using the New Folder button.

    Click for full image.

  3. Now, click the Open button to begin the packaging process.

    Click for full image.

  4. You should see a progress indicator in the bottom right corner while UE4 packages your project.

    Click for full image.

  5. At the end of the packaging process, you should see a message telling you that the packaging process has completed.

    Click for full image.

  6. Navigate to the Android_Builds folder, where you should see a folder entitled Android_ETC1.

    LinuxAndroid_Step36.png

  7. Open the Android_ETC1 folder, where you'll find the files that were created during the packaging process.

    LinuxAndroid_Step37.png

    You should see the Installation and Uninstallation shell scripts (*.sh) along with the Android Application Package (*.apk) that contains all of the files you need to install the project onto any Android device that supports the ETC1 compression scheme.

  8. Now, open up the terminal from this folder's location by right-clicking inside of the folder and selecting Open in Terminal.

    LinuxAndroid_Step38.png

  9. Enter ./Install_LinuxAndroidProject_Development-arm64.es2.sh into the terminal to install the project onto your Android device.

    Click for full image.

    If you're having trouble running the shell script, try entering adb devices into the terminal to verify that your device is indeed, connected to your computer.

  10. During the installation process, the shell script should flush the following output to your terminal.

    Click for full image.

    When the shell script has completed the installation process, you should see an Installation successful message.

End Result

Now that the Installation script has finished installing the game onto your Android device, the project should now be visible inside of your device's application drawer.

Click for full image.

Congratulations! You've learned:

✓ How to install and set up the Android SDK for mobile game development with UE4 on Linux.
✓ How to enable an Android's development environment.
✓ How to create an Android mobile game project in UE4.
✓ How to deploy a level onto your Android device from UE4.
✓ How to package your mobile game for distribution (release).

The next page has some suggestions on how you can apply your newly acquired skills.

Tags