-
Notifications
You must be signed in to change notification settings - Fork 6
Compiling Level‐Headed via the Unix Build Script
The Unix Build Script requires the following dependencies:
- Qt6
- git
- wget (optional: for downloading the build script via command line)
Windows users can run the build script via a Unix environment such as msys2. Many Unix environments will have their own package managers (e.g. msys2 uses pacman), allowing for easy install of the dependencies. If this build script is run within a msys2 (MinGW) environment, then the build script will automatically search for the necessary dependencies and automatically install them.
The build script is untested on Apple devices, but it should (hopefully) work if all dependencies are installed. The dependencies can be installed with Homebrew.
Linux users should be able to find the dependencies in their package repository. Simply install them with your distribution's package manager (aptitude, pacman, etc.).
WARNING: The build script will remove the ./Level-Headed/ folder before starting! If this folder exists on your system, back it up before running this script!
If the build script doesn't work properly on your device, it is recommended to compile via Qt Creator.
To make a stable build, open a bash terminal and paste the following command:
wget https://raw.githubusercontent.com/Coolcord/Level-Headed/master/Level-Headed/Build_Scripts/Unix/Compile_Level-Headed.sh -O ./Compile_Level-Headed.sh && sh ./Compile_Level-Headed.sh; rm ./Compile_Level-Headed.sh
This will download the build script and run it to compile Level-Headed. When it is complete, there should be a new folder ./Level-Headed/ where all of the compiled files will be placed.
By default, the build script will use stable code. Passing the argument "latest" to the build script will make the script use the latest source code in all of the git repositories. This is not recommended, as the code may not be tested and could be unstable.
To make a build with the latest source code, open a bash terminal and paste the following command:
wget https://raw.githubusercontent.com/Coolcord/Level-Headed/master/Level-Headed/Build_Scripts/Unix/Compile_Level-Headed.sh -O ./Compile_Level-Headed.sh && sh ./Compile_Level-Headed.sh latest; rm ./Compile_Level-Headed.sh