Run > Upload to GX.games… (⌘F7) works in four steps:
- It exports the GX.games package.
- It checks the package's layout:
- every file is at the top of the zip;
index.htmlandrunner.jsonare there;- every file
runner.jsonnames is there; - there are no macOS extras (
._files,__MACOSX).
- It shows the upload commands.
- 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):
- 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. - 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. - 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.
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.