From d62a490d8b42f7b25fa7c741986767a43cbecdf8 Mon Sep 17 00:00:00 2001 From: AlefLm Date: Tue, 11 Feb 2025 21:35:39 +0000 Subject: [PATCH] build: generate Linux installable package. --- CMakeLists.txt | 6 ++++++ README.md | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a69c5d2b6..35e929b3a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -778,3 +778,9 @@ endif() # We want all build properties to be encapsulated properly. include(WarnAboutGlobalProperties) + +# Generate archive files +set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Firo client software") +set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md") +set(CPACK_VERBATIM_VARIABLES YES) +include(CPack) \ No newline at end of file diff --git a/README.md b/README.md index f421ef0201..d1850e0457 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,15 @@ See [doc/build-windows.md](doc/build-windows.md) for instructions on building on Now that you have your self-built or precompiled binaries, it's time to run Firo! Depending by your skill level and/or setup, you might want to use the command line tool or the graphic user interface. If you have problems or need support, [contact the community](https://firo.org/community/social/). +# Install Firo + +After building with `CMake`, generate `.sh` file with `make package`. Once you run `make package` you should have `./FiroCore-VERSION_MAJOR.VERSION_MINOR.VERSION_REVISION-Linux.sh` in your build directory. + +For example, you can install `Firo` on your `/usr/bin` with: +``` +./FiroCore-0.14.14-Linux.sh --prefix=/usr/bin --exclude-subdir +``` + # Contributors ## Code Contributors