Upload game build
To load a game build to the update server, use the Build Loader command-line utility.
Build Loader system requirements:
- Windows 7/8/10 64-bit OS or macOS 10.14.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. Can be in MB or GB. Accepts values from10mb
to5120mb
or from1gb
to5gb
, default is5gb
.--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 test stage. The game will be available only for testing.--set-build-on-master
— placing the game build to the master stage. The game will be available for the end users. If--set-build-on-test
is specified, this option is ignored.
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:
--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.Note
We highly recommend specifying the
--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.
Note
If the game build contains files that change during gameplay, for example, settings, user profiles, or save files, add them to the list of ignored files. Otherwise, the launcher detects a file integrity violation when updating the game and downloads the whole game again
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 master to place the game build to the master stage, or click Set as staged for the test stage. If added to the master stage, the game build will be added to the published build of your launcher. If added to the test stage, the game build will be added to the draft build of your launcher.
- 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.
Note
To test your game, start Launcher with the
-game_stage test
parameter passed in the console. For example: launcher.exe -game_stage test
.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.
--xsolla-locale <locale>
: interface language;--xsolla-login-token <token>
: Xsolla Login JWT (JSON Web Token).
Tutorials
Your progress
Continue reading
Next steps
Generate installerFound a typo or other text error? Select the text and press Ctrl+Enter.