The preferred method for shipping Veloren is now Airshipper, but here is information about packaging the standalone game.
This document is focused mainly on packaging Veloren for Linux, but some information will also be helpful for other platforms.
Please refer to this guide for the general setup and compilation instructions.
The specific version of Nightly Rust a given version of Veloren is intended to be compiled with is specified in the
If you use rustup, it will install and use the right version automatically. Otherwise you need to make sure you use the correct one yourself.
Veloren will fail to compile on Stable Rust, and we do not support compiling it with Rust versions other than the one specified in the
- It is recommended that you use the
--releaseflag so that the resulting binaries are fully optimized.
- In order for the game to use standard (XDG-compliant) directories to save user data instead of trying to save it next to the executable, you need to set the
VELOREN_USERDATA_STRATEGYenvironment variable to
- To compile specific binaries, you need to pass
The resulting command to compile the game server and client using the above settings would be:
VELOREN_USERDATA_STRATEGY='system' cargo build --release --bin veloren-voxygen --bin veloren-server-cli
In this case the resulting binaries will be
- You need to include the assets for the game to run. The expected location for them is
- In the assets folder, we provide a
.desktop[spec] file, an icon and a
.metainfo.xml[spec] file. You should place them as follows: