There are two methods to build Astra, either via Flatpak or manually using your system libraries. It's highly recommended to prefer the Flatpak, especially if you don't have experience with CMake, C++ and such.
Building the Flatpak version is easy, and there's a helper script to speed up the process. You must run it from the repository root:
$ cd astra
$ ./scripts/build-flatpak.sh
The process should only take a few minutes on a moderately powerful machine. It does require an Internet connection and the relevant permissions to install the required Flatpak runtimes and extensions.
When it's complete, a file called astra.flatpak
will appear in the repository root and that can be installed with the flatpak
CLI tool or your preferred application store.
The process to build Astra manually is a little bit more involved, but not difficult. It's easiest to do on rolling release Linux distributions.
- Linux
- Windows, macOS and other systems may work but are currently unsupported. Patches are accepted to fix any problems with those OSes though.
- CMake 3.25 or later
- Qt 6.6 or later
- Base, Declarative, WebView, Concurrent
- KDE Frameworks 6
- Extra CMake Modules, Kirigami, I18n, Config, CoreAddons and Archive.
- Rust
- Corrosion
- unshield
- QtKeychain
- QCoro
These are optional dependencies, that will be used if found on your system.
- Steamworks SDK
- You must specify
STEAMWORKS_INCLUDE_DIRS
andSTEAMWORKS_LIBRARIES
yourself.
- You must specify
- Gamemode
- Turn on
ENABLE_GAMEMODE
to enable integration.
- Turn on
Astra has git submodules that must be cloned alongside the repository, so make sure to pass the --recursive
flag:
$ git clone --recursive https://github.com/redstrate/Astra.git
If you missed it, it's possible to initialize the submodules afterward:
$ git submodule update --init --recursive
To configure, run cmake
in the source directory:
$ cd Astra
$ cmake -S . -B build
This command will create a new build directory and configure the source directory (.
). If you want to enable more options, pass them now:
$ cmake -S . -B build -DENABLE_GAMEMODE=ON
Now begin building the project:
$ cmake --build build
If the build was successful, an astra
binary will be found in ./build/bin/astra
.