Overview

Date: 2026-05-11

Time: 15:36

Overview

publish-games.py is a standalone FTL2 automation script that uploads browser game files (.html, .js, .wasm) from a local catbeez-games directory to a remote catbeez-arcade server. It supports dev and prod environments and can publish all games or a specified subset. The script uses uv run inline dependencies — no virtualenv setup required.

Usage Patterns

The script is invoked via uv run with environment variables sourced from .env:


source .env && uv run publish-games.py                       # all games to dev
source .env && uv run publish-games.py --prod                # all games to prod
source .env && uv run publish-games.py asteroids dash        # specific games to dev
source .env && uv run publish-games.py --prod asteroids dash # specific games to prod

Game discovery is automatic — discoverlocalgames() finds all .html files in the source directory and derives game names from their stems.

API and Configuration

Key Behaviors

Relationships