Overview
implementedA 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.
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.
Prerequisites
before the first runYou 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.
| Need | Where it comes from | Christmas 17 |
|---|---|---|
| Catalog listing + game_id | Store admin UI (shop.casualarts.uk) or aws/game_store/create_game.py | Listed 31 Aug 2026 |
| game_store_id in buildSettings.yml under common: | Copy of the catalog game_id, not the repo slug | Present |
| GAME_STORE_API_URL | Live API: https://hs4m46v4vj.execute-api.us-west-2.amazonaws.com | Not set on the walkthrough Mac |
| GAME_STORE_USERNAME / GAME_STORE_PASSWORD | CI 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.uk | ADO aws-key/aws-secret, buildRunner instance profile, or a local AWS profile | Local default profile can list the bucket |
| project binary | rustTools release (ADO downloads it) or rustTools/target/release/project | Local release build present |
Optional: GAME_STORE_BUCKET overrides the upload bucket (default stock.casualarts.uk).
Step 1 · Prepare the build
repoPick 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.
- Read the live listing. GET {API}/catalog/games/{game_id} is public. Note title, version and s3_paths.
- 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.
- Match the flavour. A Collectors Edition listing needs flavour:collectors; a standard listing needs flavour:standard.
- Publisher. Use publisher:CA.
- Commit and push. ADO and buildRunner build main, not your working copy.
Step 2 · Build the release
one run per platformRun 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.
| Route | How | Notes |
|---|---|---|
| ADO pipeline (recommended) | Run the game repo's game.yml pipeline: market game_store, framework axmol, build release, plus flavour and platform | Secrets come from Key Vault CAdevOpsKeys. Builds main. |
| ansible buildRunner | Add a game_store line to build-manifest.txt.j2 | Christmas 17's line is there but commented out |
| Local command line | Run project from the game directory with the env vars set | Uses 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.
Step 3 · Store assets
admin UIListing 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/.
Step 4 · Upload and publish
automaticThe 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.
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.
Step 5 · Verify
every releaseCheck 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.
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| Message | Cause | Fix |
|---|---|---|
| game_store_id is not set in buildSettings.yml | Game not linked to its listing | Add the catalog game_id under common: |
| GAME_STORE_API_URL environment variable is not set | Secrets missing (also USERNAME / PASSWORD) | Add to Key Vault CAdevOpsKeys or ~/.ca.yml; export locally |
| Game store rejected GAME_STORE_USERNAME/GAME_STORE_PASSWORD with 401 | Wrong or disabled CI account | Check the CI user exists and has the admin role |
| Game store publishing does not support platform | Built for iOS, Android or web | Only pc and mac can be published |
| Game store rejected the catalog update … 404 | game_store_id does not match a catalog game | Copy the id again from the admin UI |
| Pipeline fails on mac_game_store | Stale pipeline option | Use 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/.