Roves

Command line (roves-cli)

roves — package your game with the Roves player from a terminal, a script or any CI.

Edit on GitHub

@drincs/roves-cli is the roves command. It packages your already-built web game with the Roves player, from a terminal, an npm script or any CI service. It is the same packager that Packmaster and the GitHub Action use, so all three produce the same packages.

  • Desktop (Windows, macOS, Linux): it downloads the prebuilt player, checks it, puts your game in its game/ folder, applies your icon and zips the result. Nothing is compiled, and any computer can build for all three platforms (a Windows PC can make the macOS and Linux packages too).
  • Android and iOS (experimental): it drives the native WebView tooling described in Mobile; these need the platform toolchains.

Install

npm install -g @drincs/roves-cli
roves --help

It needs Node.js 20.19 or newer. Without installing it, use npx @drincs/roves-cli <command>. A single executable with Node.js inside is attached to every release, for machines without Node.js.

Package your game for desktop

Build your game first, so that a folder such as dist/ has index.html at its root. Then:

roves bundle -c dist                                         # this computer's platform
roves bundle -c dist -p windows,macos,linux -n my-game -o release
roves bundle -c dist --steam                                 # Steam packages
roves bundle -c dist --icon-png icon.png

You get <name>.zip and the unzipped <name> folder (<name>.app on macOS); with several platforms, <name>_<platform>.zip each. The zip is what you ship.

OptionWhat it does
-c, --content-dir <dir>Your built game, with index.html at its root (required).
-p, --platform <list>windows, macos, linux; repeat it or use commas. Default: this computer's.
-n, --name <name>Name of the zip and of the folder inside it (default roves-game).
-o, --out-dir <dir>Where the packages are written (default: the current folder).
--icon-png <file>Square PNG icon, 16-2048 px. Default: icon.png in your build.
--icon-ico <file>Windows .ico for play.exe. Default: made from the PNG.
--steamSteam packages (the Steamworks library included).
--steam-app-id <id>Writes steam_appid.txt, to test outside Steam. Needs --steam.
--enable-mcpDevelopment package an AI agent can drive (never ship it).
--compression-level <0-9>0 (default) is the fastest in game, 9 the smallest download. See Content packing.
--max-archive-size <size>Largest asset archive, e.g. 300MB (default) or 1GiB.
--content-layout filesCopy your build as loose files instead of archives.
--shell-version <tag>Use another player release than the one this CLI version targets.
--jsonPrint the results as JSON, for scripts.

The player release is pinned by each CLI version, so the same CLI version always builds the same packages; update the CLI to get a newer player.

Mods and DLC

roves mod create sets up a new TypeScript mod or DLC project for your game (it asks what it needs), roves mod dev, roves mod check and roves mod pack test, check and pack it, and roves bundle --dlc ships your official DLC with the game. See Mods and DLC.

Android and iOS

roves android -c dist --app-name "My Game" --orientation landscape
roves ios -c dist --app-name "My Game" --bundle-id com.example.mygame   # macOS only

These check the required toolchains first and list whatever is missing, with how to install it. Release builds take your signing keys from options or environment variables. Details and limits are in Mobile.

In a script or CI

{
  "scripts": {
    "package": "vite build && roves bundle -c dist -p windows,macos,linux -o release"
  }
}

The CLI runs on any CI service with Node.js. On GitHub, the GitHub Action wraps it and also installs the mobile toolchains for you. From Node.js code, the same functions are available as a library (import { bundleDesktop } from "@drincs/roves-cli").

roves download -p linux only downloads (and caches) a player package and prints its path.

On this page