Skip to content

A tool for packaging a WebGL build made with Unity3D into a binary executable

License

Notifications You must be signed in to change notification settings

iMartinezMateu/unitywebpackager

Repository files navigation

Unity Web Packager

Introduction

Unity Web Packager is a tool made with Python that encapsulates and packages a WebGL game generated with Unity3D into a binary executable, so it can be installed and treated like a native game.

The binary generated by this tool can be executed in Windows, OS X, GNU/Linux and ARM devices like the Raspberry Pi.

Requisites

In order to run and use this tool you will need to have installed in your computer the following items:

  • Python 3 that you can grab from here.
  • Qt 5 that you can grab from here.
  • PyQt 5 that you can grab from here.

Usage

To use this tool, just invocate it using Terminal. It is mandatory to pass a value for the following arguments along with the package flag:

  • --build-dir: the directory where the game was exported to WebGL using Unity3D
  • --output-dir: the directory where the binary executable source code is going to be stored
  • --development: configure Unity Web Packager to convert a development or release Unity 3D WebGL build.

For example, issuing the following command tells to the tool that the WebGL build files are in the /Example/WebGL directory, the binary source code will be generated in the /Example/build path and the build exported from Unity3D is a release:

unitywebpackager.py package --build-dir /Example/WebGL --output-dir /Example/build --development false

Notice that Unity Web Packager only generates the source code of the final binary executable. The developer must compile the source code in the deployment machine. For example, if he wants to package a game that must be compatible with the Raspberry Pi, he must compile the source code in a Raspberry Pi.

You can get more help of this tool issuing the command unitywebpackager.py --help.

Reporting issues

Issues can be reported via the Github issue tracker.

Please take the time to review existing issues before submitting your own to prevent duplicates. Incorrect or poorly formed reports are wasteful and are subject to deletion.

## Submitting fixes and improvements Fixes and improvements are submitted as pull requests via Github.

About

A tool for packaging a WebGL build made with Unity3D into a binary executable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages