LiminaliaLiminalia

Export targets and stores

One project exports for the browser, Mac, Windows, Linux, Android and iOS. lim doctor checks in one go whether you have the tools each export needs.

Export targets

Browser

How to export
Choose “Browser” on the Export screen, or run lim build browser
Distributed as
A folder you can put on a web server as is. It can also make a zip with index.html at the top level
Where saves go
The browser's database (IndexedDB)
Offline
After it's opened once, the game plays offline too. Assets are stored as they're used (build.browser.offline)
Controls
Mouse, keyboard, touch and gamepad
Tools needed
None
Runs on
Chrome and Edge 99 or later, Safari 15.4 or later, and Firefox 97 or later

Mac

How to export
Choose “Mac” on the Export screen, or run lim build mac. You can export it only on a Mac
Distributed as
An app that runs on both Apple silicon and Intel. It can also make a zip and a dmg
Where saves go
~/Library/Application Support/<game name>/saves. If saves.location is portable, the <game name> savedata folder next to the app
Offline
Plays without an internet connection
Controls
Mouse, keyboard and gamepad
Tools needed
None if you only run it on your own Mac. To distribute it to others, a Developer ID certificate and credentials for notarization

Windows

How to export
Choose “Windows” on the Export screen, or run lim build windows. You can also export it on Mac and Linux
Distributed as
A folder and a zip. It can also make an installer (build.windows.installer)
Where saves go
%APPDATA%\<game name>\saves. If saves.location is portable, the savedata folder next to the executable
Offline
Plays without an internet connection
Controls
Mouse, keyboard and gamepad
Tools needed
None. makensis to make an installer, and a code signing certificate to sign it

Linux

How to export
Choose “Linux” on the Export screen, or run lim build linux
Distributed as
A folder and a tar.gz (x64)
Where saves go
~/.config/<game name>/saves. If saves.location is portable, the savedata folder next to the executable
Offline
Plays without an internet connection
Controls
Mouse, keyboard and gamepad
Tools needed
None

Android

How to export
Choose “Android” on the Export screen, or run lim build android. For an App Bundle for Google Play, run lim build android --aab
Distributed as
An APK. For Google Play, you submit an App Bundle (.aab)
Where saves go
Inside the app
Offline
The game's content is packed into the app, so it plays without an internet connection
Controls
Touch (tap, swipe and long press). The back button closes menus and screens
Tools needed
The Android SDK and a JDK (installing Android Studio gets you both). bundletool to make an App Bundle
Runs on
Android WebView 99 or later

iOS

How to export
Choose “iOS” on the Export screen, or run lim build ios. --device installs and launches it on a connected iPhone or iPad, and --archive makes an .ipa for the App Store
Distributed as
An Xcode project, and an .ipa for the App Store
Where saves go
Files inside the app (included in the device's backup)
Offline
The game's content is packed into the app, so it plays without an internet connection
Controls
Touch (tap, swipe and long press)
Tools needed
A Mac, Xcode and a team for signing. To publish on the App Store, a team enrolled in the Apple Developer Program (paid)
Runs on
iOS 15.4 or later

Using the Export screen in Studio

Where save data is stored

Saves, read history, config settings and variables shared by all saves are all stored in the same place.

Export targetLocation
BrowserThe browser's IndexedDB
Mac~/Library/Application Support/<game name>/saves
Windows%APPDATA%\<game name>\saves
Linux~/.config/<game name>/saves
AndroidInside the app
iOSFiles inside the app

Default folder: Desktop versions use the OS's standard folder in the table. Saves are kept when players update the game by extracting a new zip.

Portable saves: Set saves.location to portable in liminalia.json. Windows and Linux use savedata next to the executable, and Mac uses <game name> savedata next to the app. If the location isn't writable, the game uses the standard folder.

Updating older Windows or Linux builds: On first launch, the new version copies saves from beside the executable to the standard folder.

Manual export: Players can use “Export saves” in the game's Settings to export their saves to one file.

Stores

You register your game and go through review on each store's own site. How stores treat games made with AI and adult games is covered in the FAQ.

Steam

What you submit
Desktop versions for Mac, Windows and Linux that connect to Steam. Put the App ID in build.steam in liminalia.json, export, and upload with lim publish steam
What you need
A Steamworks account, an App ID and a depot for each OS, and steamcmd
Signing
The Mac version can be signed with a Developer ID and notarized, and the Windows version can be code signed
Achievements
Achievements from @achieve become Steam achievements. The progress of counting achievements can be written to Steam stats
Purchases
DLC (@purchase opens the Steam store page, and the game checks whether the player owns it)
Other
Cloud saves, Rich Presence, Steam Input, Workshop and the Steam Deck on-screen keyboard

Google Play

What you submit
An Android App Bundle (.aab). Make it with lim build android --aab and upload it to the Play Console
What you need
A Google Play Console account, the Android SDK, a JDK and bundletool
Signing
You sign with an upload key (the keystore in build.android). Google signs the app that players get
Achievements
Google Play Games achievements. You provide the library (AAR) yourself
Purchases
One-time products (unlocking the full version, extra scenarios and so on). You provide the Play Billing Library (AAR) yourself

App Store

What you submit
An .ipa made with lim build ios --archive. Add --upload to upload it to App Store Connect
What you need
A Mac, Xcode and a team enrolled in the Apple Developer Program. To automate the upload too, an App Store Connect API key
Signing
Signed automatically with your team
Achievements
Game Center achievements
Purchases
One-time products (StoreKit 2). Restoring purchases is supported too

itch.io

What you submit
A zip of the browser version (you can upload it as an HTML game as is), or a zip of a desktop version
What you need
An itch.io account
Signing
If the Mac version isn't signed and notarized, the player's Mac blocks it the first time it's opened
Achievements
Achievements inside the game (on the Extras screen)
Purchases
No in-app purchases. Desktop versions sold outside Steam have a way to deliver updates (lim update-manifest)

DLsite

What you submit
The game in the form the store asks for (such as a zip of the Windows version)
What you need
Seller registration with DLsite
Signing
If you wrap the executable with the store's tool, put that command in build.windows.wrap and it runs during the export
Achievements and purchases
There's no public store SDK that games can call, so the game doesn't connect to store features. Achievements inside the game still work

GOG, Epic Games Store

What you submit
Desktop versions
Achievements and purchases
Provide a module in your project that connects to the store's SDK and set it in build.store.desktop.module, and achievements and DLC checks connect to that store

Distribution and updates (signing, installers and stores)