LiminaliaLiminalia
Technical docs: Distribution and updates: Stores

Stores

Open in Claude (new tab)
On this page

Publishing to stores

Google Play (Android App Bundle)

Google Play accepts Android App Bundles (.aab), not APKs. lim build android --aab (or build.androidAab: true, or the environment variable LIMINALIA_AAB) also makes <name>_<datetime>.aab next to the APK.

brew install bundletool          # only once (for other OSes, see "Where bundletool is found" below)
LIMINALIA_ANDROID_STORE_PASSWORD=… lim build android --aab
"build": { "bundleId": "com.example.game", "android": { "keystore": "/safe/place/upload.jks", "alias": "upload", "storePasswordEnv": "LIMINALIA_ANDROID_STORE_PASSWORD" } }
  • targetSdk is build.android.targetSdk (the default is 36, the minimum Google Play currently requires: from August 31, 2026, new apps and updates must target Android 16 = API 36 or higher). Building needs the SDK Platform of that version (from the SDK Manager in Android Studio, or sdkmanager "platforms;android-36". Without it, the export stops, and lim doctor tells you too). If you only want to try it on your own device, setting build.android.targetSdk to a version you have installed lets you export the APK (with a warning), but --aab with a targetSdk below the minimum stops
  • Gradle isn’t used. The same content as the APK has its resources linked again with aapt2 link --proto-format, is laid out in bundletool’s module form (manifest/, dex/, res/, assets/, resources.pb), is built with bundletool build-bundle, signed with jarsigner, and checked with bundletool validate
  • The signing key is build.android, the same as for the APK. On Google Play, this becomes the upload key for Play App Signing (Google signs the APKs it delivers). Create the key with keytool -genkeypair -v -keystore upload.jks -alias upload -keyalg RSA -keysize 2048 -validity 10000 and store it outside the project folder. Without build.android, the bundle is signed with a development key (it can’t be uploaded to Play, and you’re told so)
  • The build number is build.buildNumber (raise it every time you upload to Play. The environment variable LIMINALIA_BUILD_NUMBER takes precedence, for example to pass a CI run number). If it’s left out, it’s derived from version (1.2.3 → 10203). This would give a version whose second or third part is 100 or more (1.0.100 and so on) the same number as another version, so in that case the export stops (set the number)
  • Where bundletool is found: the environment variable LIMINALIA_BUNDLETOOL (bundletool-all-<version>.jar or a command) → bundletool on the PATH → ~/.liminalia/tools/bundletool*.jar. Download the jar from https://github.com/google/bundletool/releases. If it isn’t found, the export stops before building and shows how to install it
  • Uploading to the Play Console is done by hand (create the app and upload the .aab to the internal testing track). To check it locally before uploading, use bundletool build-apks --bundle=….aab --output=….apks --local-testing and bundletool install-apks --apks=….apks

App Store (Archive and export)

lim build ios --archive                        # makes an Archive and exports it to an .ipa for the App Store (--export app-store is the default)
lim build ios --archive --export ad-hoc        # distributes to registered devices (when you don't use TestFlight). development is for development
LIMINALIA_ASC_KEY=~/keys/AuthKey_XXXX.p8 LIMINALIA_ASC_KEY_ID=XXXX LIMINALIA_ASC_ISSUER=… \
  lim build ios --archive --upload             # uploads to App Store Connect instead of exporting (it appears in TestFlight)

The Xcode project, App.xcarchive and export/App.ipa (and export/ExportOptions.plist) are created in <out>/ios/<name>_<datetime>/.

  • xcodebuild archive (-scheme App -destination generic/platform=iOS, automatic signing with your team, -allowProvisioningUpdates) and xcodebuild -exportArchive
  • The team is build.ios.team → LIMINALIA_IOS_TEAM → the team of the “Apple Development” certificate in your keychain (the same as when installing on a device). App Store and ad-hoc exports need a team enrolled in the Apple Developer Program (paid) (a free personal team can only do development; the export says so and stops)
  • Xcode creates the certificates and distribution signing settings (provisioning) with the account you added in Xcode’s Settings → Accounts. Where no account is added, such as in CI, have them created with an App Store Connect API key (the environment variables above. Create the key in App Store Connect under Users and Access → Integrations → App Store Connect API. If the notarization variables LIMINALIA_NOTARY_KEY, _KEY_ID and _ISSUER are set, the same key is used)
  • The method in ExportOptions.plist uses the names from Xcode 15.3 on (app-store-connect, release-testing, debugging) (the older names for earlier versions of Xcode)
  • To upload without --upload: add App.ipa to Transporter (Apple’s app on the Mac App Store). After uploading, entering the app information and screenshots and submitting for review in App Store Connect are done by hand
  • The version is version (CFBundleShortVersionString) and build.buildNumber (CFBundleVersion; raise it every time you upload. The environment variable LIMINALIA_BUILD_NUMBER takes precedence. If it’s left out, it’s made the same way as for Google Play)

Steam (SteamPipe)

"build": { "steam": { "appId": 1234560, "depots": { "windows": 1234561, "mac": 1234562, "linux": 1234563 } } }
lim build mac,windows,linux                     # exports the Steam-connected versions (if build.steam is set)
lim publish steam --dry-run                     # only makes the VDF files and prints the commands it would run
lim publish steam --login my_steam_builder      # uploads with steamcmd (steamcmd asks for the password and Steam Guard)
lim publish steam --login my_steam_builder --branch beta --desc "1.2.0 playtest"   # sets the build live on the beta branch after uploading
  • Create a depot for each OS under SteamPipe → Depots in Steamworks, and write their IDs in build.steam.depots (only the OSes listed there are uploaded). To upload to the App ID of an edition such as a demo, use --app-id and --depot windows=…,mac=… (and pass what you exported with lim build --steam demo with --build)
  • If you leave it out, what’s uploaded is the newest export in <out>/<OS>/ (the game folder for Windows and Linux, and the folder containing the app for Mac). You can choose with --build windows=folder,…. It looks at game.json in the export and stops if the export isn’t connected to Steam or is for another App ID. It also stops for a test build (lim build --feedback; add --allow-test to upload it)
  • It creates app_build_<App ID>.vdf and depot_build_<depot ID>.vdf in <out>/steam/ and runs steamcmd +login <name> +run_app_build <VDF> +quit. The depots don’t include the export check’s screenshot (verify-title.png) or the packaged zip, dmg and tar.gz files. Logs go to <out>/steam/output/
  • Without --branch, the build isn’t set live (set it live on a branch under SteamPipe → Builds in Steamworks). The default branch can’t be set live from steamcmd, so that stops with an error. --preview doesn’t upload; it only lists what would be uploaded (SteamPipe’s Preview)
  • You log in yourself. lim doesn’t take passwords (--login or the environment variable LIMINALIA_STEAM_LOGIN is just the account name). It’s best to create an account just for uploading builds, and give it only permission to edit the app’s builds. Once you’ve logged in, steamcmd may not ask again next time, using the credentials it saved
  • steamcmd is tools/ContentBuilder/builder_osx/steamcmd.sh in the Steamworks SDK (builder_linux on Linux, builder/steamcmd.exe on Windows), or the steamcmd that Valve distributes. It’s looked for in the environment variable LIMINALIA_STEAMCMD → steamcmd or steamcmd.sh on the PATH → ~/Steam/steamcmd.sh and so on

itch.io (butler)

"build": { "itch": { "target": "my-name/my-game", "channels": { "browser": "html5" } } }
lim build browser,windows,mac,linux --steam off   # export versions not connected to Steam
lim publish itch --dry-run                         # only show what would be uploaded and the butler commands
lim publish itch                                   # upload everything that has been exported
lim publish itch browser,windows --userversion 1.0.1
  • build.itch.target is the “user/game” part of the game page’s URL on itch.io (https://my-name.itch.io/my-game). You can also give it with --target
  • By default, the channels are html5 for the browser version, windows for Windows, mac for Mac and linux for Linux (itch.io decides the OS from the channel name). Change them with build.itch.channels or --channel windows=win-beta. The version is version (change it with --userversion or the environment variable LIMINALIA_VERSION)
  • If you don’t choose what to upload, it’s <out>/browser/<id> for the browser version and the latest export in <out>/<target>/ for the others. Choose with --build browser=folder,…. The export check’s screenshot and the packaged zip, dmg and tar.gz files aren’t uploaded (butler push --ignore). Builds connected to Steam and test builds (lim build --feedback) stop with an error (add --allow-test to upload a test build)
  • Install butler from https://itchio.itch.io/butler, put it on the PATH, and log in with butler login (you can also give its location in the environment variable LIMINALIA_BUTLER). In CI, put the API key in the environment variable BUTLER_API_KEY. lim doesn’t take keys. Without butler, it shows how to install it and stops
  • For the browser version, after the first upload choose “This file will be played in the browser” on the game’s edit page and enter the screen size (the game’s screen size). The encrypted browser version (build.browser.encrypt) also plays, since itch.io uses https. butler only sends the differences from the previous version (encrypted assets also stay the same file if their content doesn’t change)

GitHub Pages

The browser version plays when you put the exported folder (<out>/browser/<id>) there as it is (it loads files by paths relative to index.html, so it also works under https://<user>.github.io/<repository>/; since it’s https, the offline Service Worker and encryption work too).

  • To put it there by hand, put the contents of the exported folder at the top of the branch that Pages publishes (gh-pages and so on)
  • To put it there with GitHub Actions, copy the template templates/ci/liminalia-publish.yml to .github/workflows/ in the game’s repository. When you push a version tag (v1.0.0 and so on), it exports the browser, Windows and Linux versions, puts the browser version on Pages, and also uploads to itch.io if BUTLER_API_KEY is in secrets. Set Source under Settings → Pages in the repository to “GitHub Actions”
  • The template’s LIMINALIA_ENGINE_REF has the engine’s version tag of the time (v0.2.0 and so on; versioning.md). It can be a commit too (it stops if it’s empty). Pinning it means the game is always exported with the same engine; when you update the engine, change it here and check before distributing
  • When it runs for a version tag, it checks that the tag and version in liminalia.json match (v1.0.1 and 1.0.1) and stops if they don’t (so a forgotten version bump isn’t shipped)

Store declarations

What to declare when you publish to stores. The Liminalia engine sends nothing except what you’ve set a destination for. There are only the following three, and each is either sent after asking the player or written and sent by the player. None of them carries IDs that identify a device or person, and none is used for advertising or tracking.

Project settingWhat’s sentWhen
build.crashReport.urlCrash records (“Crash records and source maps” above)At the next launch after the game stops, when the player answers “Yes”
build.analytics.urlPlay statistics (“Play statistics” above)After the player agrees to send them
build.feedback.urlFeedback in test builds (test builds only)When a tester writes and sends it

Other than these, the only network traffic is the desktop version’s update check (build.update.url), store features (achievements, purchases, cloud saves; these follow the store’s rules), and whatever the project’s plugins do themselves. If a plugin sends information, you declare that too. For the Android and iOS versions, the export prints a “Store declarations: data collected by …” line.

Privacy policy

Google Play and the App Store ask for the URL of the game’s privacy policy. Write which of the items in the table above you use, where they’re sent (your server), how long they’re kept, and how to contact you. If you use none of them, you can write that the game doesn’t collect information. Nothing reaches the provider of Liminalia (the site’s privacy policy).

Google Play (Data safety)

Answer under “App content → Data safety” in the Play Console.

What you useAnswer
None of themDoesn’t collect or share any data
build.crashReport.urlCollected: “App info and performance → Crash logs” and “Diagnostics”. Not shared, optional (players choose), purpose “App functionality”, encrypted in transit (use an https destination)
build.analytics.urlCollected: “App activity → App interactions”. Not shared, optional, purpose “Analytics”

Neither is tied to the player (no account or device IDs are attached). Make sure the receiving side can respond to deletion requests.

App Store (App Privacy and PrivacyInfo.xcprivacy)

Answer “App Privacy” in App Store Connect according to what you use, the same as for Google Play (crash records are “Diagnostics → Crash Data” and statistics are “Usage Data → Product Interaction”; both are “Not linked to the user” and “Not used for tracking”).

The exported iOS version gets a privacy manifest, PrivacyInfo.xcprivacy (mobile/privacy.ts). It declares no tracking (NSPrivacyTracking is false, and there are no tracking domains), and lists as collected data only the items in the table above that you use, as collection that isn’t linked to a person or used for tracking. APIs that require a reason (UserDefaults, file timestamps and so on) aren’t listed, because the app part of the exported iOS version doesn’t use them. When the project’s plugins send other information, or you want to use a manifest you wrote yourself, put that file in build.ios.privacyManifest.

"build": { "ios": { "privacyManifest": "store/PrivacyInfo.xcprivacy" } }

Age ratings (IARC)

Google Play, the Microsoft Store and others decide age ratings with the IARC questionnaire (Steam uses the mature content declaration on your store page). The answers are about the game’s content (violence, sexual content, language, fear, drugs, gambling), which the engine doesn’t decide. The questions that involve the engine can be answered as follows.

QuestionAnswer
Can players interact with each other, or share things they made?No (unless the project’s plugins add it)
Is location shared?No
Can digital goods be bought?Yes, if you use build.store.products
Is there unrestricted internet access?No (@open-url opens the page in the device’s browser)

When you release a toned-down edition separately (contentFilter in build.variants), answer based on that edition’s content.

Steam Deck

What the Steam Deck compatibility review (“Steam Deck Compatibility” in Steamworks) looks at, and how the engine handles it.

What’s checkedHow the engine handles it
Can it be played with only a gamepad?Advancing, choices, system screens, and saving and loading can all be done with a gamepad (it can also be bound to Steam Input with build.steam.input)
Text input@text-input shows Steam’s on-screen keyboard (“Steam” in player.md)
Is text readable at 1280×800?The screen is scaled up keeping its aspect ratio (a 16:9 game gets bars at the top and bottom). Check with the game’s text size that the text and choices aren’t too small at 1280×800 (players can raise “Text size” in Settings)
Launchers, external accountsNone
How it runsThe Linux version (lim build linux), or the Windows version through Proton. Check on a real device

The control hints on the game screen (button names) follow the connected gamepad (players can change them with “Button labels” in Settings).

Stores and in-app purchases

Products, and using them from the scenario

Write the products that can be bought in build.store.products (the name in the game → the product ID in each store). For now, only one-time purchases (unlocking the full version, additional scenarios and so on) are supported (consumables and subscriptions aren’t).

"build": { "store": { "products": {
  "full": { "ios": "com.example.game.full", "android": "full_unlock", "steam": 1234560, "gog": "1207666" }
} } }
@if (!system.purchases.full)
  @purchase full
@end
@if (system.purchases.full)
  @jump chapter2
@end
  • @purchase <product> buys it (waiting until the store screen closes). After a purchase, system.purchases.<product> becomes true and is saved right away as a variable shared by all saves. The result (“Purchase complete”, “Purchase canceled”, “Your purchase is pending” and so on) is shown briefly to the player
  • @restore-purchases restores purchases (after changing devices, for example. iOS review requires a restore button)
  • At launch, and when the player returns to the game (from a store page, for example), ownership is checked with the store again. If the store can’t be reached, the result of the previous check is used
  • Where there’s no store (the browser version, and exports not connected to a store), the game shows “Purchases aren’t available here” and does nothing

iOS (StoreKit 2)

If a product has ios, lim build ios builds StoreKit 2 code into the app. Create a non-consumable product with the same Product ID in App Store Connect.

  • Ownership comes from Transaction.currentEntitlements (excluding refunded items), and only transactions whose signatures are verified count as purchases. Restoring uses AppStore.sync()
  • Purchases awaiting approval (such as Family Sharing’s Ask to Buy) are reported as pending, and are applied at the next check once they go through
  • To test locally, create a StoreKit Configuration File in Xcode and set it in the scheme under Run → Options → StoreKit Configuration

Android (Google Play Billing)

Billing on Google Play needs the Play Billing Library (AAR). The export doesn’t use Gradle, so get the AARs yourself and list them in build.store.android.libraries (without them, the export warns and builds without billing).

"build": { "store": { "android": { "libraries": ["libs/billing-8.0.0.aar"] } } }
  • Get the AAR from Google’s Maven repository (com.android.billingclient:billing), and list all the AARs and JARs it depends on too (see the dependencies in the Maven pom, or check with ./gradlew :app:dependencies in an Android Studio project). It builds with either Play Billing Library 7 or 8
  • classes.jar and libs/*.jar from the AARs are built in, and the permission (com.android.vending.BILLING), queries, activity and meta-data are added to AndroidManifest.xml. The AARs’ resources (res/) aren’t built in, so libraries that use resources may not work
  • Purchases (in the purchased state) are acknowledged (otherwise they’re refunded after 3 days). Google Play ties purchases to the account, so restoring is the same as asking again what the player owns
  • Create an in-app product with the same product ID in the Play Console. Billing can only be tested in an app installed from the Play Store (from the internal testing track, for example)

Mobile achievements (Game Center and Google Play Games)

@achieve and @achieve-progress (extra.achievements in liminalia.json; counting achievements use goal) are sent to Game Center achievements in the iOS version and to Google Play Games Services v2 achievements in the Android version, just as the desktop version sends them to Steam. Both record achievements unlocked while offline or before signing in, and send them once sign-in is done. Every launch sends the unlocked achievements and counts again (the store ignores duplicates).

"build": {
  "gameCenter": { "achievements": { "first_star": "com.example.game.first_star" } },
  "playGames": {
    "appId": "1234567890",
    "achievements": { "first_star": "CgkIxxxxxxxxEAIQAQ", "read_all": "CgkIxxxxxxxxEAIQAg" },
    "libraries": ["libs/play-services-games-v2-21.0.0.aar", "libs/play-services-base-18.5.0.aar", "libs/play-services-basement-18.4.0.aar", "libs/play-services-tasks-18.2.0.aar"]
  }
}

iOS (Game Center)

  • If build.gameCenter is set, lim build ios adds GameKit code and the Game Center entitlements (App/App.entitlements) to the app. achievements maps the game’s achievement names → Game Center achievement IDs (if you don’t write one, the game’s achievement name is used as the ID as is)
  • An unlock is sent as 100% complete, and a counting achievement as the ratio “current count / goal” (the percentage is never lowered). The game signs in at launch, and shows the Game Center screen if the player isn’t signed in
  • What you do: enable Game Center for the app in App Store Connect and create achievements with the same IDs. Enable the Game Center capability for the App ID in your Apple Developer account (with Xcode’s automatic signing, it’s added when you sign with your team). You can also test in the Simulator if you sign in to Game Center

Android (Google Play Games Services v2)

  • If build.playGames is set, lim build android adds Play Games code to the app, and com.google.android.gms.games.APP_ID to AndroidManifest.xml (its value is the resource game_services_project_id). The export doesn’t use Gradle, so get the libraries (AARs) yourself and list them in libraries (com.google.android.gms:play-services-games-v2 from Google’s Maven repository and all the dependencies in its pom. You can also look at ./gradlew :app:dependencies in an Android Studio project)
  • The libraries’ resources (res/) are linked too, and the libraries’ R classes are generated (to read google_play_services_version from play-services-basement and so on). Libraries that are also in the billing libraries (build.store.android.libraries) are built in only once
  • achievements maps the game’s achievement names → Play Console achievement IDs (only the achievements you list are sent). Unlocks are sent with unlock and counting achievements with setSteps(current count), so make those incremental achievements in the Play Console, with the number of steps equal to goal
  • The game waits for the automatic sign-in at launch (it doesn’t show a sign-in screen, and nothing is sent for players who aren’t signed in through Play Games’ settings)
  • What you do: set up Play Games Services in the Play Console (the project ID is appId), create the OAuth consent screen and an Android credential registered with the SHA-1 of the app’s signing key, and create and publish the achievements. Register tester accounts. Test with an app installed from the Play Store (from the internal testing track, for example)

Steam DLC

If a product has steam (the DLC’s App ID), the Steam-connected desktop version checks ownership with isDlcInstalled. @purchase opens the DLC’s store page in the Steam overlay (whether it was bought is checked again when the player returns to the game). The DLC’s content can be delivered as a pack (a depot placed in Resources/packs/).

Steam Workshop

With build.steam.workshop: true, the Steam-connected desktop version loads the installed Workshop items the player has subscribed to as packs (workshop.getSubscribedItems and installInfo in steamworks.js).

  • An item’s content is a pack folder exported with lim pack (with pack.json at the top level or inside a single folder). Its id is id in pack.json (letters, digits, _ and -; if that can’t be used, workshop-<item ID>). If there’s an official pack with the same id (in packs/ in the save location, or in Resources/packs/), that one is used
  • Subscriptions that aren’t installed yet are requested for download and loaded from the next launch. Items whose requires (game version) doesn’t match aren’t loaded
  • Use Steam’s tools to make and upload items (SteamCMD from Steamworks, or an uploader your project provides). Liminalia only handles loading them
  • Workshop items can be made by people other than the game’s creators, so only the pack’s content (scenarios, data and assets) is loaded, and plugin code isn’t

Steam Input

build.steam.input binds Steam Input actions to game controls. Upload the action definitions (Game Action File) to Steam Input in the Steamworks admin pages.

"build": { "steam": { "appId": 123456, "input": { "actionSet": "InGameControls", "actions": {
  "confirm": "a", "cancel": "b", "menu": "start", "hide_window": "x", "backlog": "y", "skip_hold": "rb", "auto_toggle": "auto", "quick_save": "quick-save"
} } } }
  • The controls you can bind are gamepad buttons (a, b, x, y, lb, rb, lt, rt, select, start, up, down, left, right; advance is a and back is b) and system screen actions (auto, skip, quick-save, quick-load, save, load, rollback, rollforward, prev-choice, next-choice, next-unread, backlog, config, flowchart, screenshot, hide, menu, title)
  • Buttons behave as on a standard gamepad (a confirms and advances, b goes back, start opens the menu, and rb skips while held). Both presses and releases are passed to the game. System screen actions happen on press
  • actionSet defaults to InGameControls. The same action set is used for the whole game

Other stores (GOG Galaxy, Epic Games Store)

GOG Galaxy and Epic Online Services have no official Node.js libraries, so a project plugin plugs in a store module. In an export that isn’t connected to Steam, if you write a CommonJS file in build.store.desktop.module, the export puts that file’s whole folder into the app’s store/ and loads it at launch (native libraries (.node, .dll, .dylib) placed in the same folder are kept outside the asar).

"build": { "store": { "desktop": { "module": "plugins/gog-store/store.cjs", "options": { "clientId": "…" } } } }
// plugins/gog-store/store.cjs (runs in the desktop version's main process)
module.exports = {
  name: "gog", // the key for this store's IDs in build.store.products
  create(ctx) {
    // ctx.game (title, version), ctx.options (build.store.desktop.options), ctx.log, ctx.dir (this file's folder)
    const galaxy = require("./galaxy-binding.node"); // example: a GOG Galaxy SDK binding you provide
    galaxy.init(ctx.options.clientId);
    return {
      achievement(id) { galaxy.unlockAchievement(id); },            // @achieve
      presence(text) { galaxy.setRichPresence("status", text); },     // @presence (empty clears it)
      async owned(ids) { return ids.filter((id) => galaxy.isDlcInstalled(id)); },
      async buy(id) { galaxy.openStorePage(id); return "opened"; },  // "purchased" | "pending" | "cancelled" | "failed" | "opened"
      async restore(ids) { return this.owned(ids); },
      checkLicense() { return galaxy.isLoggedOn(); },                 // if false, the game tells the player and quits
      shutdown() { galaxy.shutdown(); },
    };
  },
};
  • Every method is optional (missing ones aren’t used). A module can also have gamepadText(o) (an on-screen keyboard), isDeck(), packs() (folders of extra content the store delivers) and licenseMessage (the text shown when checkLicense returns false). If the module can’t be loaded, or create throws, the game can still be played without the store features
  • Exports connected to Steam (build.steam) use the Steam code

DLsite, DMM GAMES and others

DLsite and DMM GAMES work by having the store wrap the game files it receives, or by wrapping the executable with a tool the store provides, and no SDK for games to call is public. Liminalia only provides hooks for this.

  • build.windows.wrap: a command that wraps the exported executable ({file} is the executable’s path. It runs before signing. The environment variable LIMINALIA_WIN_WRAP_COMMAND takes precedence)
  • checkLicense() in the store module: plugs in a license check at launch
  • Wrapping changes the executable, so signing (build.windows.sign) and the installer come after it. If the store does the wrapping, follow the store’s guidance on whether to submit without signing