GitHub Action
roves-action — package your game with the Roves player in your own CI.
roves-action is a GitHub Action — a
reusable, automated step for the kind of workflow described in the accordion above. It does
what Packmaster does, in an online job
GitHub starts for you on a Windows, macOS or Linux machine, so you never install anything on
your own machine. You only provide your already-built web content.
- Desktop (Windows, macOS, Linux): the action downloads the prebuilt
Roves player for the runner's platform,
verifies it, puts your game in its
game/folder, applies your game's icon and zips the result. Nothing is compiled. Standard and Steam variants exist for every platform; Windows also has an opt-in MCP-enabled development package. - Android and iOS (experimental): unchanged, still packaged with the previous generation's native WebView tooling; see Mobile.
Use DRincs-Productions/roves-action@v1 for the Roves player. @v0 keeps the previous
Servo-based desktop Shell. Upgrading from @v0? See Migrating from @v0.
Example
Triggered by pushing a version tag, a matrix starts one job per desktop platform in
parallel. Each job runs the action once and uploads its zip to the tag's GitHub Release. The
steam axis adds a Steam package per platform; drop it if you don't use Steam.
name: Release
on:
push:
tags: ['v*']
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "${{ github.ref_name }}" --repo "${{ github.repository }}" --title "My Game ${{ github.ref_name }}"
package:
needs: create-release
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steam: ['false', 'true']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: npm ci && npm run build
- id: roves
uses: DRincs-Productions/roves-action@v1
with:
content-dir: dist
steam: ${{ matrix.steam }}
artifact-name: my-game_${{ runner.os }}${{ matrix.steam == 'true' && '_steam' || '' }}
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload "${{ github.ref_name }}" "${{ steps.roves.outputs.archive-path }}"A playtest build an AI agent can drive (any desktop runner; never ship it to players, see Local MCP bridge):
- uses: DRincs-Productions/roves-action@v1
with:
content-dir: dist
enable-mcp: 'true'
artifact-name: my-game_${{ runner.os }}_mcpAn Android APK (any Linux runner, nothing compiled):
- uses: DRincs-Productions/roves-action@v1
with:
content-dir: dist
android: 'true'
artifact-name: my-game_androidInputs
| Name | Default | Description |
|---|---|---|
content-dir | (required) | Path to your already-built web content, with index.html at its root (e.g. a Vite dist/ folder). On desktop it replaces the player's game/ folder. |
icon-png | see Project icon | Square PNG project icon (16–2048 px, at most 8 MiB): window icon, macOS app icon, and the source of play.exe's icon when icon-ico is unset. Android: launcher icon. Not supported with ios. |
icon-ico | see Project icon | Project .ico. Windows: play.exe's icon. macOS/Linux: window icon source when there is no PNG. Not supported with android or ios. |
steam | 'false' | Package the Steam variant (Steamworks redistributable next to the executable). |
enable-mcp | 'false' | Desktop only (Windows, macOS, Linux): package the MCP-enabled development player. Never ship it to players. Can't be combined with steam. |
content-layout | '' (archives) | Desktop only: archive packs the game into a few archives the player reads from memory, files copies loose files. Empty: the default, archives. See Content packing. |
compression-level | '0' | Desktop only: archive compression, 0 (none, fastest in game) to 9 (smallest download). |
max-archive-size | '300MB' | Desktop only: largest asset archive, e.g. 300MB or 1GiB; bigger folders are split. |
mods | '' | Desktop only: 'false' packages the game without third-party mods (official DLC still load). Empty: your package.json decides. See Mods and DLC. |
dlc | '' | Desktop only: official DLC to ship next to the game, one path per line (a DLC project folder or a recorded .rovesmod). |
project-dir | '' | Desktop only: your game's project folder with its package.json. Default: the nearest one above content-dir. |
artifact-name | roves-game | Base name for the zip and the folder inside it: my-game gives my-game.zip containing my-game/. |
output | roves-bundle-output | Where the package is assembled, relative to your repo root (replaced if it exists). Usually left unset: use the bundle-dir/archive-path outputs. |
The Android (android, bootstrap, android-*) and iOS (ios, ios-*) inputs are
described on the Mobile page and in the
action's README.
Outputs
| Name | Description |
|---|---|
bundle-dir | Absolute path to the unzipped package folder (named artifact-name). |
archive-path | Absolute path to <artifact-name>.zip. |
mcp-enabled | 'true' when the package contains the local MCP bridge, else 'false'. |
content-layout | Desktop: archive (game packed into archives) or files (loose files). |
icon-source | Desktop: where the icons came from, e.g. window project (game icon.png 512x512); executable project (ICO generated from game icon.png). |
Desktop packages
| Runner | steam | enable-mcp | Your zip contains |
|---|---|---|---|
| Windows (x64) | false | false | play.exe, play.dll, the Chromium runtime, game\, licenses\, SHA256SUMS.txt |
| Windows (x64) | true | false | the same plus steam_api64.dll |
| Windows (x64) | false | true | the same plus mcp\ (development only) |
| macOS (arm64) | false | – | the .app, with your game in Contents/Resources/game |
| macOS (arm64) | true | – | the same plus Contents/MacOS/libsteam_api.dylib |
| Linux (x64) | false | – | the executable, the Chromium runtime, chrome-sandbox, game/ |
| Linux (x64) | true | – | the same plus libsteam_api.so |
Before packaging, the action verifies the downloaded player (on Windows, every file against
its SHA256SUMS.txt) and fails the run on any mismatch. The player's own files are never
modified, except for the icons. The zip keeps macOS symlinks and Linux execute bits.
Each desktop platform is packaged on its own runner (windows-latest, macos-latest,
ubuntu-latest); there is no cross-building. The action doesn't sign or notarize anything:
see macOS first launch and
Linux sandbox for what players
need to know.
Project icon
Your game's icon comes first; the official Roves icon is the fallback.
- Window icon (title bar, taskbar, Dock while running):
icon-png, elsecontent-dir/icon.png, else the largest image in the project ICO (icon-ico, elsecontent-dir/icon.icoorfavicon.ico). - Windows
play.exe(Explorer, shortcuts):icon-ico, else an ICO generated from the PNG above, elsecontent-dir/icon.icoorfavicon.ico, else the Roves icon. - macOS app icon (Finder, Launchpad, the Dock before launch): the resolved PNG,
converted to
.icns. - Linux: only the window icon; the package has no
.desktopentry.
An explicit icon-png/icon-ico that breaks the limits (at most 8 MiB; PNG square, 16–2048
px; ICO with a square largest image of at least 16 px) fails the run. An invalid file found
in content-dir is a warning and the next source is tried. The startup screen always shows
the Roves logo.
Steam
steam: 'true' selects the Steam variant of the same player. The App ID comes from Steam's
launch environment, else a development steam_appid.txt next to the executable (add it to
your package yourself for local testing; Steam itself doesn't need it). Steam missing or not
running is never fatal: the game plays as in the standard package. See
Steam integration.
Local MCP bridge (enable-mcp)
Desktop only: Windows, macOS and Linux runners. With 'true' the action packages the
MCP-enabled development player for the runner's platform: an AI agent or IDE connected
through MCP can read the running game's state and console, run JavaScript in the page,
click, press keys and type, which is useful for automated playtests. The package's mcp
folder sits next to play.exe on Windows, in <name>.app/Contents/Resources/ on macOS and
next to the executable on Linux. Any program running as your user account can control the
game through it: development only, never ship that package to players. With 'false'
the output never contains MCP files. enable-mcp with steam (or with android/ios)
fails the run. See
the player's MCP
section for connecting a client.
Migrating from @v0
@v1 packages the Roves player: it no longer compiles anything or bundles the Servo Shell
for desktop, so every input that configured that build or bundle is gone. Passing a removed
input makes GitHub warn about an unexpected input; it has no effect.
| Removed input | Replacement |
|---|---|
advanced-mode, release, dev, production, profile, target, media-stack, jobs, with-asan, with-tsan, with-debug-assertions, debug-mozjs, with-frame-pointer, use-crown, coverage, win-arm64, verbose, very-verbose, build-params, bin, nightly | None: the desktop player is prebuilt, with one configuration per platform. |
features: steam | steam: 'true' |
html-file, window-size, bundle-params | None: the player always opens game/index.html in its own window. |
content-compress, content-compression-level, content-max-pack-size, content-exclude, content-boot-include | None: game/ holds your files as they are, served by the player. |
deb, msi, dmg, package-name, package-version | None yet: the output is a portable zip on every platform. |
diagnostic-script | None. |
flavor, no-package | None: they only applied to the desktop build, which Android never ran. |
Other changes:
android: 'true'andios: 'true'no longer needadvanced-mode: 'true'.icon-pngis now the macOS app icon too, andicon-icoalso feeds the window icon on macOS/Linux when there is no PNG. An explicit invalid icon now fails the run.- New:
steam,enable-mcp, and themcp-enabled/icon-sourceoutputs. @v0keeps the Servo desktop Shell; the Roves player is@v1.