π¦ Exporting your Game¶
How to export a game that uses the SpriteStudio Player for Ren'Py. This covers only the steps this player adds; for the generic build mechanics it links to Ren'Py's own documentation.
This page is for game authors exporting their own project with the stock Ren'Py launcher. If you are working inside this repository (building the demo or the native libraries), the developer helper scripts that automate each export below are documented in the Build Guide.
Common to every platform: game/spritestudio/libs/ already holds the player's
native library for every platform. Ren'Py packages the ones a desktop or Web build needs with
your game; for Android and iOS you place it once by hand, as below. Your
assets (.ssab, .ssqb, textures, sounds) ship with your game like any other
file in game/. The projects under SpriteStudio_Source/ do not.
Desktop Export (Windows / macOS / Linux)¶
Standard Ren'Py Build Distributions β
nothing to add for this player. For distribution, code-sign and notarize per
Ren'Py's docs (unsigned .dylibs are blocked by Gatekeeper).
Optional β pack assets into a .rpa: register the archive before any
classify rule of your own that also matches them, since build.classify uses the
first rule that matches:
Android Export¶
Standard Ren'Py RAPT. Set up RAPT and run Install SDK, Configure (sets the package name), and Generate Keys once from the launcher's Android screen, per Ren'Py's docs. Then:
- Copy the native library into RAPT, once. Android loads native libraries
only from the app's own library folder, so copy each ABI's
.sofromgame/spritestudio/libs/android/<abi>/libssruntime.sointo your Ren'Py SDK:
The ABIs are arm64-v8a (most 64-bit devices), armeabi-v7a (older phones)
and x86_64 (emulators).
2. Build β on the same screen, pick Play Bundle (an .aab, for Play upload) or
Universal APK (an .apk), then press Build Package.
iOS Export¶
Standard Ren'Py renios: it generates an
Xcode project (the .ipa is built from Xcode). macOS + Xcode required.
- Generate the Xcode project β from Ren'Py's launcher (iOS β Select Xcode Projects
Directory the first time, then Create Xcode Project), or the equivalent
<renpy> launcher ios_create . <xcode-project-dir>CLI command. - Embed the native library, once β in Xcode: app target β General β
Frameworks, Libraries, and Embedded Content β + β Add Filesβ¦ β
game/spritestudio/libs/ios/libssruntime.xcframeworkβ Embed & Sign. It stays through laterios_populateruns. - Build β pick a Simulator and Run (no signing), or set your signing
team and Product > Archive for a device
.ipa.
Web Export¶
Standard Ren'Py Web export β nothing to
add for this player: the WebAssembly build in game/spritestudio/libs/web/ ships
inside game.zip and loads when the game starts. It uses WebAssembly SIMD, so
the target browser must support it β see Limitations.
Testing: serve over HTTP (not file://) β Ren'Py's own web server does. After
re-exporting, unregister the cached service worker / clear site data, or the
browser serves the old build.