Skip to content

Updates

molly edited this page Nov 12, 2026 · 1 revision

The bundle (scripts/bundle.sh) is a phigros++ <native> <version> <games> line followed by every core file in load order, words.txt and mods/, read by phigrospp/bundle.c:

File
phigrospp/VERSION The Phigros++ version, of the bundle and of the release
phigrospp/NATIVE Bumped when the C changes anything the Lua sees: a bundle runs only on the native code it lists
phigrospp/GAMES The game versions the Lua works on, the newest last: a bundle runs only on a game it lists
phigrospp/release.pub The release key every build trusts

On start, the game reads the phigrospp.version of the latest GitHub release (ggmolly/PhigrosPlusPlus), its bundle's first line. A newer bundle for this app and game is offered in a popup on the chapter screen. Update downloads it under a progress bar, then the game reloads into it. A release that needs a newer app (another native, or a newer game) is offered the same way and opens the release page. Skip keeps that version out of the popup, the Phigros++ tab still offers it.

A downloaded bundle is phigros++/bundle, its Ed25519 signature first. The C side runs it only when the signature is the release key's, its native and game match the app's and it's newer than the one built in, else the built-in one runs. The signature protects the download: a tampered release file, a hijacked mirror or someone who can upload release files but has no key can't run code on players' devices. What's already in phigros++/ (mods/, core/) is trusted as before, since anything that can write there could add a mod.

Releasing a bundle is pushing a v<VERSION> tag: .github/workflows/release.yml signs it with the release environment's key and publishes it. A new app (C changes or a game update) is built locally and its APKs attached to the release before it's published. scripts/release.sh --keygen makes a new key: its seed goes to stdout, the public key to phigrospp/release.pub. A new key needs a new app, since every build trusts the one it was built with.

keystore.jks signs the APKs, so players update the app in place keeping their data. Keep it safe and out of the repo: whoever has it can make an app that installs over every player's game, and without it every player must uninstall.

Clone this wiki locally