Steam integration
Building Roves with Steamworks support and using it from your game.
Roves has a built-in, opt-in Steamworks integration — a full wrapper (achievements, stats,
DLC, overlay, store) that your game reaches through
@drincs/roves-api/steam. It's off
in the standard packages.
Getting a Steam package
Every Roves player platform is published twice:
the standard package and a _steam package (roves_shell_windows_steam.zip,
roves_shell_macos_steam.zip, roves_shell_linux_steam.zip) with the Steamworks
redistributable next to the executable. Nothing is compiled on your side:
- Packmaster: in Advanced → Steam, turn on the toggle and enter your Steam App ID.
Packmaster uses the
_steampackage and writes asteam_appid.txtnext to the game's executable. - GitHub Action: set
steam: 'true'.
The App ID comes from Steam's launch environment; outside the Steam client, a
steam_appid.txt next to the executable (Valve's convention for local testing) provides it.
Steam itself sets the App ID once your game is published there.
Steam missing or not running is never fatal: every function in the JS-side wrapper degrades to a harmless default, so players launching outside Steam still play normally and you don't need a separate non-Steam build for them. On Linux and Steam Deck, ship the native Linux build (see Device compatibility).
Using it from your game
import { steam } from "@drincs/roves-api/steam";
if (await steam.isAvailable()) {
await steam.unlockAchievement("ACH_COMPLETE_CH1");
await steam.openOverlay("achievements");
}See roves-api → steam for the full API surface. For how player saves relate to Steam Cloud, see Save-game storage.
No Tauri, no window.__TAURI_INTERNALS__
This isn't the same code path as the Tauri build's Steam integration — Roves has no Tauri
runtime to inject invoke(), so @drincs/roves-api/steam is a real, independent
implementation, just deliberately shaped to feel familiar if you already know Tauri's API.
If your frontend needs to run under both shells, branch between this package and
@tauri-apps/api per shell.