Casual Arts · operations runbook

Deploying to the Casual Arts Store

One project build run with market:game_store uploads the build to S3 and repoints the store listing at it. This page covers the whole release, worked through with Christmas Wonderland 17.

Status  Working document Checked  27 November 2026 Background: Build Process Reference · Catalogue Delivery Plan

Overview

implemented

A store deployment zips the build, uploads it to s3://stock.casualarts.uk/<slug>/<platform>/<version>.zip, logs in to the store API as the CI admin, and calls PUT /admin/catalog/games/{game_id} to point the listing at the new file and version.

Production There is no staging catalog yet. A successful run changes what customers download straight away.

The build only updates a game that is already in the catalog. Creating the listing (title, price, description, screenshots) is a one-time manual step in the store admin UI.

PlatformsWindows (windows) and macOS (mac). Anything else fails with “Game store publishing does not support platform”. Worked exampleChristmas Wonderland 17, repo christmas17, store game_id ff1b12f1-9f6f-4fae-bbac-089c90954e6a.

Prerequisites

before the first run

You need a catalog listing, the CI store account, AWS write access and a project binary. Preflight checks the first three and stops before building if any is missing.

NeedWhere it comes fromChristmas 17
Catalog listing + game_idStore admin UI (shop.casualarts.uk) or aws/game_store/create_game.pyListed 31 Aug 2026
game_store_id in buildSettings.yml under common:Copy of the catalog game_id, not the repo slugPresent
GAME_STORE_API_URLLive API: https://hs4m46v4vj.execute-api.us-west-2.amazonaws.comNot set on the walkthrough Mac
GAME_STORE_USERNAME / GAME_STORE_PASSWORDCI user with the admin role. Key Vault CAdevOpsKeys (ADO) or ~/.ca.yml (buildRunner)Not set locally; CI account still listed as outstanding
AWS write access to stock.casualarts.ukADO aws-key/aws-secret, buildRunner instance profile, or a local AWS profileLocal default profile can list the bucket
project binaryrustTools release (ADO downloads it) or rustTools/target/release/projectLocal release build present

Optional: GAME_STORE_BUCKET overrides the upload bucket (default stock.casualarts.uk).

Old script create_game.py hard-codes an old API host (f9ihj4polk…) and an expired token. Use the admin UI, or update both before running it.

Step 1 · Prepare the build

repo

Pick a version higher than the live one, match the flavour to the listing, and commit a clean tree. The version becomes part of the S3 key and is shown to customers.

  1. Read the live listing. GET {API}/catalog/games/{game_id} is public. Note title, version and s3_paths.
  2. Set the version. project reads versionString from buildSettings.yml. When its last part is 0, it is replaced with version_revision: 1.0.0 + version_revision:21 ships as 1.0.21.
  3. Match the flavour. A Collectors Edition listing needs flavour:collectors; a standard listing needs flavour:standard.
  4. Publisher. Use publisher:CA.
  5. Commit and push. ADO and buildRunner build main, not your working copy.
Christmas 17 The live listing is the Collectors Edition at 1.0.20, but buildSettings.yml has versionString: 1.0.0. Pass version_revision:21 or higher, or the store version goes backwards. An uncommitted change in assets/debugSettings.yml also switches flavour from 2 (Collectors) to 0 (standard).

Step 2 · Build the release

one run per platform

Run one build per platform with market:game_store. The build, upload and catalog update all happen in that run. Use the ADO pipeline for normal releases.

RouteHowNotes
ADO pipeline (recommended)Run the game repo's game.yml pipeline: market game_store, framework axmol, build release, plus flavour and platformSecrets come from Key Vault CAdevOpsKeys. Builds main.
ansible buildRunnerAdd a game_store line to build-manifest.txt.j2Christmas 17's line is there but commented out
Local command lineRun project from the game directory with the env vars setUses your own AWS credentials and working copy

Local command for Christmas 17, Windows Collectors Edition:

GAME_STORE_API_URL=https://hs4m46v4vj.execute-api.us-west-2.amazonaws.com \
GAME_STORE_USERNAME=<ci user> GAME_STORE_PASSWORD=<ci password> \
project engine:axmol platform:pc build:release flavour:collectors \
  publisher:CA market:game_store version_revision:21

Repeat with platform:mac for the Mac build. Preflight prints a tick for the API URL, the CI credentials and game_store_id.

Stale option game.yml still offers mac_game_store. That target was removed from project on 31 Aug 2026, so choosing it fails. Use game_store.

Step 3 · Store assets

admin UI

Listing text and images are edited by hand in the store admin UI; the build never changes them. Check them before every release.

The listing holds title, description, price, discount_percent, image_url, screenshots, min_requirements, release_date, main_site_url and promoted. Source art lives in each repo under marketing/casualArts/.

Christmas 17 The live listing still carries Christmas 16 material: the description names “Christmas Wonderland 16”, and image_url, all 8 screenshots, main_site_url and apple_ios_url point at Christmas 16 pages.

Step 4 · Upload and publish

automatic

The upload and catalog update run at the end of the Step 2 build. There is no separate publish button: a green job means customers now get the new version.

1 Preflight GAME_STORE_* + game_store_id 2 Build and zip project builds the release 3 Upload to S3 stock.casualarts.uk/slug/os/ver.zip 4 Log in POST /auth/token (CI admin) 5 Update catalog PUT /admin/catalog/games/{id} 6 Live to customers next download serves the new zip Anything missing: stops before building Versioned key: older builds are kept Non-2xx fails the job; zip already in S3 No staging catalog yet: this is production

Only the platform you built changes: the API merges s3_paths per key, so a Windows run leaves the Mac path alone. If step 5 fails, rerun the job; the same version key is overwritten in S3.

Christmas 17windows points at the older flat key christmas17/windows.zip. The first run moves it to christmas17/windows/1.0.21.zip. Christmas 17mac and linux point at the casualartsstore bucket. A Mac run moves mac to stock.casualarts.uk. Nothing builds Linux, so that path stays.

Step 5 · Verify

every release

Check the job log, the catalog record and a real download. The log line Updated game store catalog entry <id> — windows = s3://… means steps 3 to 5 succeeded.

Catalog record

API=https://hs4m46v4vj.execute-api.us-west-2.amazonaws.com
curl -s "$API/catalog/games/ff1b12f1-9f6f-4fae-bbac-089c90954e6a" | python3 -m json.tool

Check version and the platform's s3_paths value.

S3 object

aws s3 ls s3://stock.casualarts.uk/christmas17/ --recursive

Customer download and listing

Sign in to shop.casualarts.uk with an account that owns the game, download from the library, then install and launch on a clean machine. Check the title, art and screenshots on the store page.

Rolling back Older zips stay in S3. Point the listing back in the admin UI, or send a PUT with the previous version and s3_paths value.

Release checklist

copy per release
  • Game is listed in the catalog and game_store_id is in buildSettings.yml under common:
  • Live version read; versionString + version_revision gives a higher number
  • Flavour matches the listing (Collectors or standard); publisher CA
  • Changes committed and pushed to main
  • Listing text, art and screenshots checked in the admin UI
  • Build run with market:game_store for each platform (Windows, Mac)
  • Job log shows “Updated game store catalog entry”
  • Catalog record, S3 object and a real download verified

Troubleshooting

error messages
MessageCauseFix
game_store_id is not set in buildSettings.ymlGame not linked to its listingAdd the catalog game_id under common:
GAME_STORE_API_URL environment variable is not setSecrets missing (also USERNAME / PASSWORD)Add to Key Vault CAdevOpsKeys or ~/.ca.yml; export locally
Game store rejected GAME_STORE_USERNAME/GAME_STORE_PASSWORD with 401Wrong or disabled CI accountCheck the CI user exists and has the admin role
Game store publishing does not support platformBuilt for iOS, Android or webOnly pc and mac can be published
Game store rejected the catalog update … 404game_store_id does not match a catalog gameCopy the id again from the admin UI
Pipeline fails on mac_game_storeStale pipeline optionUse game_store; remove the old value from game.yml

Open items from the Christmas 17 walkthrough

to do
  • Confirm the CI store account exists and its credentials are in Key Vault and ~/.ca.yml; the integration plan still lists it as outstanding.
  • Replace the Christmas 16 copy and images in the listing (Step 3).
  • Commit or revert the four local changes, including the flavour switch in debugSettings.yml.
  • Remove mac_game_store from game.yml.
  • Run the first Windows and Mac game_store builds at version_revision:21 and verify (Step 5).
  • Update rustTools/docs/game-store-build-integration-plan.md: it still names rust-game.yml (now game.yml).

Implementation entry points: project/src/deployment/deploy_game_store.rs and project/src/preflight.rs in rustTools; store API in aws/game_store/src/app/.