Steam
What Forge needs to upload a desktop build to Steam with steamcmd: a builder account and its config.vdf, a depot per platform, and a branch.
Nesta página
Steam takes builds through SteamPipe. Forge uploads with steamcmd, Valve's
own tool, into one depot per platform: 64-bit Windows, macOS and 64-bit
Linux. Steam has no depot for Linux on Arm, and Valve ships no Steam library
for Windows on Arm, so those targets never go to Steam.
A build of its own
A game on Steam ships Valve's steam_api library beside its executable. No
other store should get that file, so Forge builds Steam its own artifact.
Once Steam is set up, every build of a project exports each desktop target
twice: the plain build for every other store, and a Steam build with
Valve's library in it. Only the Steam build goes to Steam, and nothing else
ever gets it.
Both are the same game on the same engine. The Steam build is the export
run again with balaur export --steam, which copies Valve's library beside
the game. Without the Steam client, the game's Steam calls answer that Steam
is not available.
The Steam build is signed and notarised like the plain one, with the same
certificates, in the same step of the build. On a build's page it is the
target with (steam) after its name.
What you need
-
The AppID that Steamworks gave the game. Set it in
project.toml, where the engine reads it too:[steam] app_id = 480Forge reads it off the build. An upload with no AppID, or with
0, stops and says so. -
A builder account. Make a Steam account of its own for uploads, never your own login. In Steamworks, add it to your partner group with only the right to edit app metadata and publish builds for this app.
-
Its
config.vdf. Steam Guard asks a new machine for a code, and Forge cannot answer one. So sign the builder account in once on your own computer, and give Forge the file steamcmd keeps afterwards. -
A depot id per platform you build, from Steamworks → your app → SteamPipe → Depots. The Stores tab asks only for the targets the project builds.
-
A branch to set live, if you want one. Leave it empty to upload only.
Getting config.vdf
Install steamcmd on your own computer, then sign in as the builder account:
steamcmd +login builder_account_name +quit
Type the password, then the Steam Guard code from the account's email or
authenticator. steamcmd keeps the login in config/config.vdf, beside
steamcmd itself or under ~/Steam/config/ on Linux and macOS. Upload that
file on the Stores tab. A base64 copy works too, as GitHub Actions secrets
keep it.
The file stands in for the password, so treat it as one. Forge keeps it encrypted and never shows it again. Steam expires it after a while. When an upload fails asking for Steam Guard, sign in again and upload the new file.
What Forge does with them
Nothing until you press the button. On a build's page, beside a Steam build, Publish to Steam asks once and then, on a builder:
- unpacks the Steam build as it was exported, the
.appor the executable at the depot's root; - writes an app build script with the AppID, that platform's depot and, with
a branch set,
SetLive; - restores your
config.vdfand runssteamcmd +login <builder> +run_app_build.
A red upload says what steamcmd said. Each upload is one Steam build holding one depot.
Branches and set live
With the branch empty, an upload only adds a build in Steamworks. Set it
live from SteamPipe → Builds when you are ready. With a branch such as
beta, each upload goes live there for players who opted into it.
Steam does not let an upload set the default branch live. That one is
always set in Steamworks, by hand, so Forge does not take default as the
branch.
Signing, per platform
| Platform | Steam build is signed with | Notes |
|---|---|---|
| macOS | Developer ID Application, hardened runtime, notarised | Steam asks for 64-bit, notarised builds. Valve's library is signed with the game's identity inside Contents/MacOS. The overlay's entitlements come from the export. |
| Windows | your Authenticode certificate, when the project has one | Steam does not require it, so an unsigned Windows build uploads too. |
| Linux | nothing | Linux has no code signing convention. |
The Mac App Store is a different path: an Apple Distribution certificate, a
sandbox, a provisioning profile and a .pkg, with no notarisation. Forge
has no Mac App Store upload, and the Steam build is not one.
What it does not do
It does not make the store page, set the price, or submit anything for Valve's review. Those are Steamworks forms, and so is setting a build live on the default branch.