Login
Build the game
Login

At this moment, the only supported way to build the game is to use Docker images. Later, the normal way will back.

1. Nimble way

First, you will need to install Nim programming language. It is recommended to use instructions from the download page. Linux packages are usually outdated and may not work. Perhaps the easiest way to build the game is to use nimble tool. It will install all needed Nim packages. Additionally, you will need to install SDL2 and SDL2_image development version of packages. On Windows, you can download them from SDL2 releases and SDL2_image releases pages, on Debian-based distributions, it will be apt-get install libsdl2-dev libsdl2_image-dev.

When you have all dependencies installed, in the main directory, where this file is, type: nimble release -y for build the release version of the game, or nimble debug -y to build the debug version of the game.

You can also use the script build.nims from others. In the main directory, where this file is, type others/build.nims on Linux or nim others\build.nims on Windows. It will build the game and put all needed files (except libraries) to directory release in the project root directory (where this file is).

2. Docker way

You can use Docker images build and buildwin64 from the project Docker. They contain all libraries and compiler needed to build the game.

2.1 Linux

To build the game for Linux, run in a console:

docker run --rm -w /app -v [path to source code]:/app ghcr.io/thindil/build /bin/bash others/build.nims

It will build the game and put all needed files (except libraries) to directory release in the project root directory (where file steamsky.nimble is).

2.2 Windows

To build the game for Windows 64-bit, run in a console:

docker run --rm -w /app -v [path to source code]:/app ghcr.io/thindil/buildwin64 /bin/bash others/build.nims windows

It will build the game and put all needed files to directory release in the project root directory (where file steamsky.nimble is).