Ship it
The game is finished. What is left is to give it the identity stores will know it by, check it the way CI will, and tag a version: CI does the rest, and builds it for every platform the game has turned on.
Real app ids#
rmp new gave the game ids that start with com.example., which a
release refuses. Choose real ones, made of a domain you own written backwards and the game's name,
and set them in raylib_multiplatform.toml:
[android]
application_id = "com.yourname.coinrabbit"
[ios]
bundle_id = "com.yourname.coinrabbit"Choose with care: once an app is published on Google Play under an id, that id is its id for good, and changing it means a new listing that starts with no players. The App Store's bundle id is the same kind of promise.
The two kinds of id do not accept quite the same characters. Android takes letters, digits and underscores in each part, and Apple takes letters, digits and hyphens, so the safest id has neither. A hyphen in the Android id is refused, with the line it is on and an id that would work, the moment anything reads the file:
[android]
application_id = "com.yourname.coin-rabbit" raylib_multiplatform.toml:2: application_id = "com.yourname.coin-rabbit"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
configure: error: [android] application_id = 'com.yourname.coin-rabbit' is not a valid Android application id.
It contains '-': an Android id takes letters, digits, '_' and '.', and nothing else.
A '-' is fine in an iOS bundle id and refused here: write 'com.yourname.coin_rabbit'.
It needs at least one dot and each segment must start with a letter, e.g. com.yourname.yourgame.That is the rule for the whole .toml: a value that cannot work stops the build
before anything is compiled, and says where.
Check it#
rmp testIn a game, rmp test runs four stages, and CI checks the same four things on
every push:
config: the.toml, the versions the framework pins, and the licence of every library in the game;unit: your tests intests/game/— the menu's, from Your first scene — built with the game and run with no window;render: the game built for raylib's software renderer and booted with no window and no graphics card, checked to have loaded every asset it asked for, drawn a frame with something on it, run every frame it was given and exited cleanly;smoke: the game built as you run it, booted for a few frames, and checked to have drawn something with no asset failing to load, and to have exited cleanly. A file that is missing fails, and so does one that is there and does not decode: a PNG cut short counts the same as no file at all.
A boot only reaches the first scene, so rmp test says the game starts, loads its
art and draws its menu. Whether the game is fun is still yours to check, with
rmp run.
Put it on GitHub#
CI is GitHub Actions, and the workflows came with the game. Commit your work, make an empty repository on GitHub, tell git where it is, and push to it:
git add -A
git commit -m "Coin Rabbit"
git remote add origin https://github.com/yourname/my_game.git
rmp pushA
branch that has never been pushed has nowhere to go yet, so its first rmp push is
git push -u origin main: the -u tells git that main goes to
the repository's main from then on, and every push after it is a plain
git push. Without the git remote add line there is nothing to push to, and
rmp push stops with FAIL: there is no remote to push to. and the line to
type.
rmp push
checks one thing before any of that: it will not push while a CI run of the repository is still
going, because a new push cancels it. It needs the gh command to ask; without it, it
says so and pushes.
Every push to main runs the fast lane: the checks above, and builds for Linux, the
web, Windows and Android. Watch it on the repository's Actions tab. A private repository pays for
those runs in Actions minutes, and one line of the .toml,
[ci] on_push = false, stops them: a push
then starts nothing, a release tag still builds everything, and rmp push has no run
to look for.
Release#
rmp deploy 1.0.0rmp deploy checks everything a release needs before it makes a tag that cannot be
quietly taken back: that every change to a tracked file is committed, that v1.0.0 is
not already a tag, here or on GitHub, that the commit is the one your branch on GitHub points at
as of your last fetch or push (it does not fetch), and that the .toml is valid with
real ids in it. Then it tags the commit v1.0.0 and pushes the tag.
The tag is the version: there is no version number in the project to keep in step with it.
For a tag, CI builds every target that [targets] has turned on, all
17 of them unless you turned some off, boots the ones it can, and, when every build
has passed, publishes a GitHub release with them attached. It also pushes them to itch.io, if [deploy.itch] names your page
there and the repository has the secret butler needs.
The Android build is signed with a throwaway key, which Google Play does not accept, until the repository holds your upload key as a secret. The Publishing section has that, and everything else about where each build goes: releases and versions, itch.io, Google Play and the App Store.
What next#
The game you built uses most of what the framework has: scenes, objects, behaviors, input, the interface, assets, audio and saving. The Manual takes each of them further, and the Examples are whole games to read, from Pong to a platformer whose levels are made in an editor.