Skip to content

Development

molly edited this page Nov 12, 2026 · 1 revision
Command What it does
make Builds the library and the signed APKs in out/
make install-full First install on a device, next to the game
make dev Installs the native split, pushes the mods, restarts the game and follows the log
make push Copies mods/ and examples/ to the device, where they override the bundle's mods
make push-core Puts phigrospp/lua/ on the device so it overrides the bundle's core
make reset Removes what push and push-core put there, and any downloaded bundle
make verify RELEASE=<folder> Checks that a release's APKs are the ones these sources build
make release Signs the bundle for a GitHub release (see Updates)
make logs Follows adb logcat -s phigros++
make start / stop / restart Controls the game

Clone with --recursive for Dobby (vendor/dobby). APKS=../apks/<version> picks the game version to build from. A local examples/ folder (in .git/info/exclude) holds mods showing the API, like the UI gallery: make push sends them along, they never ship.

Reproducible builds

The same commit and the same Phigros APKs always build the same APKs, apart from their signature. shell.nix pins the tools (nixpkgs at a fixed commit), and nothing in the build depends on the date, the folder or the machine. The game's APKs can't be published from CI, so anyone can check a release on their own machine instead.

  1. Get the Phigros APKs the release was built from (its notes list their SHA-256), for example from a device with Phigros from the Play Store with adb shell pm path com.PigeonGames.Phigros and adb pull, into ../apks/Phigros-<version>/.
  2. Download the release's APKs into a folder and check out its tag.
  3. make verify APKS=../apks/Phigros-<version> RELEASE=<folder>. It builds, signs with your own key, then copies the release's signature onto each APK and checks it still verifies: one byte of difference fails.

Clone this wiki locally