Ember is discontinued. It still works, but it gets no more updates or support. Back to uayi.org
Home · Terrified Gorillas · Glimmerwood · Starfall Hollow · ‹ Prev Next ›
Ember
Download

Sharing

Exporting your game

File > Export Game, pick a platform, press Export. The game goes to <your project>/export/<platform>/<Game name>/, plus a zip to share. It contains the game's executable, Ember's runtime files, your project (encrypted into game.pak by default, which needs a keystore) and LICENSES.txt.

From a command prompt:

ember_export --project C:\Users\you\EmberProjects\MyGame --target windows --keystore-password ...
ember_export --project ... --target all          (every platform this computer can build)
ember_export --list

Platforms

Target Needs on the exporting computer Status
windows on Windows: nothing; on Linux / macOS: llvm-mingw (downloadable) works; Windows builds made on Linux
linux Linux with gcc or clang works
macos a Mac with the Xcode command-line tools written, not yet tested
web Emscripten (downloadable): WebGL 2, no networking written, not yet tested
android, quest, pico Android SDK + NDK and JDK 17 (downloadable) written, not yet tested
ios a Mac with Xcode and an Apple developer team written, not yet tested
freebsd FreeBSD, or clang with a FreeBSD sysroot written, not yet tested

Consoles (PlayStation, Xbox, Switch) need SDKs that are only available to licensed developers, so they aren't included. See Consoles.

Build tools: downloaded for you

The Build tools section of the export window lists what each platform needs, and Install downloads it into Ember's tools folder (%APPDATA%\Ember\tools), where every export finds it:

Tool For From
CMake 3.30, Ninja 1.12 every compiled platform GitHub releases
llvm-mingw Windows builds from Linux / macOS GitHub releases
Temurin JDK 17 Android, Quest, Pico GitHub releases
Android SDK tools, platform 34, build-tools, NDK 26 (about 3 GB) Android, Quest, Pico dl.google.com (pressing Install accepts the SDK licences)
Emscripten (emsdk) Web git clone (needs Git and Python)

When a platform's tools are missing, selecting it shows Download what needs (with the size), which fetches exactly those. Download everything for every platform gets all of them in one go. Visual Studio, Xcode and Linux compiler packages can't be downloaded this way; the window shows the command to run and copies it for you.

From the command line: ember_export --tools lists them, ember_export --setup all installs them.

Encryption and the keystore

With Project Settings > Security > Encrypt game files on (the default), the export packs scenes, scripts, models, textures and sounds into one game.pak, encrypted with AES-256 (CTR mode) and authenticated with HMAC-SHA256: a changed byte anywhere is detected and the file refused.

Like an Android app needs a signing keystore, an encrypted export needs a keystore: a .emberkeystore file that holds your game's 256-bit key. Create one in Project Settings > Security > Keystore:

The keystore file is itself locked with a keystore password (it can be empty: then the file alone is the secret). The export window asks for it; from the command line use --keystore-password or the EMBER_KEYSTORE_PASSWORD environment variable. A wrong password stops the export before anything is built. Creating a keystore adds *.emberkeystore to the project's .gitignore: back it up somewhere safe, and keep it out of public repositories.

ember_export --project MyGame --create-keystore auto --keystore-password "something long"
ember_export --project MyGame --create-keystore password --game-password "my game password" --keystore-password ""

What it protects, honestly: a game has to decrypt its own files, so the key travels inside the game (masked, never in the clear). Encryption stops asset rippers, casual file swapping and editing; a determined reverse engineer with a debugger can still recover the key, as with every engine's pak encryption. Server-side checks (see Anti-cheat) are what you can rely on against cheating.

Export all

Export all builds every platform the computer can make, one after another, and lists the results. Platforms whose tools are missing are skipped and say what they need.

Why exports are fast

A game is data (scenes, scripts, models), so the executable doesn't depend on your project. Ember builds it once per platform and engine version, keeps it, and reuses it for every export of every project:

Measured: a Windows or Linux export takes about 3 seconds (0.05 s without the zip).

Ember 1.1 documentation. Found a mistake? The source of this page is site/docs/exporting.md in the Ember source.