Upload game build
To load a game build to the update server, use the Build Loader command-line utility.
Build Loader system requirements:
- Windows 10 64-bit OS or macOS 12.4.0 and higher
- 1.6 GHz CPU
- 100 MB free RAM
- Free disk space: 1.5 × game build size
Build Loader accepts the following options:
–init
— initialization of the utility.–update
— sending the game build to the server.–builds-list
— a list of game builds.–descr <build-description>
— the build’s description.–api-key <API-key>
— an API key.–game-path <path-to-game>
— a path to the game build.–chunk-size <chunk-size>
— the size of chunks — parts into which the game archive is divided. Accepts values from10mb
to500mb
, default is500mb
.–retry-timeout <timeout>
— the timeout between attempts to upload files in seconds. Accepts values from10
to60
, default is20
.–retry-count <retry-count>
— a number of attempts to upload files. Accepts values from1
to10
, default is3
.–set-build-on-test
— placing the game build to the Draft stage. The game will be available only for testing.–set-build-on-master
— placing the game build to the Published stage. The game will be available for the end users. If–set-build-on-test
is specified, this option is ignored.-no-progressbar
— disabling the progress bar.
To upload a game build:
- Go to Publisher Account > Build settings.
- Copy the API key.
- Download and install Build Loader.
- Initialize the utility.
- Upload the game build(s) to the server.
- Place the game build to the stage.
- Set up the game files.
Download and install Build Loader
To download and install Build Loader:
- In the Games section, click Set up to the right of your game.
- Go to Builds > Game builds.
- Download the archive with Build Loader by clicking BuildLoader.zip that suits your operating system.
- Extract the archive.
The utility location relative to the folder where you extracted the archive:
- For Windows:
Win\build_loader.exe
- For MacOS:
Mac/build_loader
Initialize Build Loader
To initialize Build Loader:
- In the Games section, click Set up to the right of your game.
- Go to the Builds > Game builds section.
- Copy the API key by clicking the + icon in API key (launcher ID). The key enables Build Loader to upload your game to the server.
- Initialize the utility by running the following command:
Upload game build to the server
To upload a game build to the server, run the following command:
You can omit the –game-path
parameter if you have already used it when initializing the utility or uploading the previous build.
During the first upload, the update server receives the whole game build. Afterwards it will receive game patches generated by Build Loader.
–descr
parameter, so that you can distinguish between the uploaded builds.- Open your project in Publisher Account.
- Click Launcher in the side menu.
- In Games section, click Set up to the right of your game.
- Go to Builds > Game builds.
- Scroll down to the Game builds table.
Place the game build to the stage
You can place the game build to a stage as follows:
- When uploading the build to the server, pass the appropriate option to Build Loader:
--set-build-on-master
or--set-build-on-test
. - After uploading the build to the server, do the following in the launcher project:
- In Games, click Set up to the right of your game.
- Go to Builds > Game builds.
- Scroll down to the Game builds table.
- In the Game builds table, click the pen icon to the right of the needed build.
- Click Set as published to place the game build to the published stage, or click Set as draft for the draft stage.
- Confirm your choice.
- Click Close.
- You will see the appropriate branch name for your build in the Branch column of the Game builds table. Also, your build will appear in the Branches table.
Set up game files
To let the launcher send the correct files to users, set up and initialize the installation files in your launcher project first:
- In Games, click Set up to the right of your game.
- Go to the Executable files tab.
- For each operating system, enter the name and extension of the file that launches the game. This file should be in the root of the game folder. For example:
game.exe
- If your game has redistributable files:
- go to the Redistributables tab and click Upload.
- In the window that appears:
- Enter the file name.
- Click Upload file and select an executable file.
- Click Upload.
The launcher forwards the following parameters to the game:
–xsolla-locale <locale>
: interface language;–xsolla-login-token <token>
: Xsolla Login JWT (JSON Web Token).
Tutorials
Continue reading
Next steps
Generate installerFound a typo or other text error? Select the text and press Ctrl+Enter.