| 1 |
Installation Instructions |
| 2 |
************************* |
| 3 |
|
| 4 |
Li-Ri depends on SDL2 and SDL2_mixer (and their dependencies). |
| 5 |
|
| 6 |
Compilation via conan: |
| 7 |
======================= |
| 8 |
Install conan 2 and run it: `conan install . --output-folder=build --build=missing`. |
| 9 |
|
| 10 |
Then, run cmake to generate the build files: `cmake -DCMAKE_TOOLCHAIN_FILE=build/Release/generators/conan_toolchain.cmake -DUSE_CONAN=ON -DCMAKE_BUILD_TYPE=Release -S . -B build`. |
| 11 |
|
| 12 |
At last, run cmake to build the executable: `cmake --build build --config Release`. |
| 13 |
|
| 14 |
Compilation via package manager: |
| 15 |
================================ |
| 16 |
Use your favorite tools to install the development packages of SDL2 and SDL2_mixer (preferably latest versions). |
| 17 |
|
| 18 |
Then run cmake to generate the build files: `cmake -DCMAKE_BUILD_TYPE=Release -S . -B build`. |
| 19 |
|
| 20 |
To specify the folder where to look for the data files, you can set the variable `LIRI_DATA_DIR` to the value you want in the cmake invocation: `cmake -DCMAKE_BUILD_TYPE=Release -S . -B build -DLIRI_DATA_DIR=/usr/local/Li-ri/data/`. |
| 21 |
|
| 22 |
At last, run cmake to build the executable: `cmake --build build --config Release`. |
| 23 |
|
| 24 |
Installation: |
| 25 |
============= |
| 26 |
Adding the option `-DCMAKE_INSTALL_PREFIX=install` will add a new target to install the package in the install/ folder inside your build folder: `cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install -S . -B build`. |
| 27 |
|
| 28 |
This will copy the binary to the ${CMAKE_INSTALL_PREFIX}/bin/ and data in ${CMAKE_INSTALL_PREFIX}/share/Li-Ri folder (except on Windows where it will copy everything in ${CMAKE_INSTALL_PREFIX}/bin/). |
| 29 |
|
| 30 |
Packaging: |
| 31 |
========== |
| 32 |
To create a package, use the *package* target from cmake invocation: `cmake --build build --config Release --target package`. |
| 33 |
* on Linux, it will create a self extractible tgz file. You can execute it and install it. Then, you can run `bin/Li-ri` from this folder to run Li-Ri. |
| 34 |
* on macOS, it will generate a .dmg (that has not been tested at all so it may not run at all). |
| 35 |
* on Windows, a NSIS installer (you need to install NSIS on your computer to generate it). |
| 36 |
|
| 37 |
|
| 38 |
Releasing: |
| 39 |
========== |
| 40 |
Update NEWS.yaml to add a new version and the changelog. |
| 41 |
Then, run `./tools/create_release.sh -v 3.1.5` to update all the files necessary for the release. |