Studio › Manual › Build and platforms

GX.games upload (⌘F7)

Run > Upload to GX.games… (⌘F7) works in four steps:

  1. It exports the GX.games package.
  2. It checks the package's layout:
    • every file is at the top of the zip;
    • index.html and runner.json are there;
    • every file runner.json names is there;
    • there are no macOS extras (._ files, __MACOSX).
  3. It shows the upload commands.
  4. It uploads only when you press Upload.

Nothing is published: when you're ready, you publish the game on GX.games.

The upload is done by GameMaker's own command-line tool, gm-cli. gm-cli signs in with your GX.games account in your browser; Studio never asks for or keeps a GX.games password or token.

Before the first upload (once per project):

  1. Install Node.js from nodejs.org. It brings npx, which runs gm-cli without installing anything else. You can also install gm-cli itself: npm install -g @gamemaker/gm-cli.
  2. In Terminal, in the project's folder, run the link command the sheet shows:
    npx --yes @gamemaker/gm-cli@latest gxgames link
    It opens your browser to sign in to your GameMaker / GX.games account. Then it asks which studio (team) and game on GX.games this project is. Create the game on GX.games first if it isn't there yet.
  3. Optional: to use your own GameMaker licence instead of gm-cli's guest one, copy the access key from your GameMaker account page and run npx --yes @gamemaker/gm-cli@latest login <key>.

Each upload:

  • Give a new version (four numbers, such as 1.0.0.2). GX.games wants a new one for every upload. Studio suggests the project's next version from Game Options > Platforms > GX.games.
  • Press Upload. gm-cli's messages appear in Output.
  • Copy Commands gives you the same commands to run in Terminal instead.

The GX.games settings show Not linked until the project is linked.

Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.