Preskoči na vsebino

Gradnja Rolisteama

Kako prispevati

Najprej preberite stran o prispevkih

Zahteve

  • Qt6.10
  • cmake

Pridobivanje izvorne kode

Najprej klonirajte repozitorij Rolisteam: git clone -r https://invent.kde.org/rolisteam/rolisteam.git.

Gradnja

Za gradnjo lahko naložite datoteko CMakeLists.txt iz korenskega imenika izvorne kode rolisteam ali pa jo prevedete iz ukazne vrstice na naslednji način:

#Premakni v izvorno kodo
cd rolisteam

# Ustvarite imenik za gradnjo in se vanj premaknite
mkdir -p build
cd build

#Konfiguracija
cmake -S .. -B . #MOŽNOSTI, če je potrebno, glejte spodaj
#Gradnja
cmake --build . --target all

#Namestitev
cmake --install .

Uporabne možnosti CMake

MožnostOpis
-DCMAKE_PREFIX_PATH:PATHPath to Qt6 installation - e.g: /path/to/qt/6.10.0/gcc_64
-DCMAKE_C_COMPILER:FILEPATHPath to c compiler - e.g: /bin/gcc
-DCMAKE_CXX_COMPILER:FILEPATHPath to cpp compiler - e.g: /bin/g++
-DQT_QMAKE_EXECUTABLE:FILEPATHPath to QMake in qt6 install folder - e.g: /path/to/qt/6.10.0/gcc_64/bin/qmake
-DCMAKE_BUILD_TYPE:STRINGDebug or Release
-DBUILD_TESTING:BOOLON or OFF - build unit tests
-DCODE_COVERAGE:BOOLON or OFF - Generate code coverage info after running tests
-DUPDATE_TRANSLATIONS:BOOLON or OFF - Update translation file

Ustvari namestitveni program

MacOS

OPOZORILO: ZASTARELENO

  1. Kopirajte/prilepite rolisteam.app v packaging/MacOs
  2. Zaženite installZlib.sh
  3. appdmg nodedmg.json rolisteam_v1.7.1-MacOsX_setup.dmg
$ install_name_tool -change "/usr/lib/libz.1.dylib" "@executable_path/../Frameworks/libz.framework/libz.1.dylib" rolisteam
$ appdmg  ../../rolisteam/packaging/MacOS/nodedmg.json rolisteam_v1.7.1-MacOsX_setup.dmg