mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-25 21:27:45 +00:00
Don't deploy applications on Flatpak
This commit is contained in:
parent
328bcb5572
commit
6ae749a12f
2 changed files with 13 additions and 7 deletions
|
@ -4,6 +4,9 @@
|
|||
cmake_minimum_required(VERSION 3.25)
|
||||
project(Novus VERSION 0.1.0 LANGUAGES CXX)
|
||||
|
||||
# build options used for distributors
|
||||
option(BUILD_FLATPAK "Build for Flatpak." OFF)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
|
|
|
@ -65,10 +65,13 @@ ecm_add_app_icon(novus-launcher
|
|||
${CMAKE_SOURCE_DIR}/resources/256-launcher.png
|
||||
)
|
||||
|
||||
# We only need to call deploy on one executable
|
||||
qt_generate_deploy_app_script(
|
||||
TARGET novus-launcher
|
||||
OUTPUT_SCRIPT deploy_script
|
||||
NO_UNSUPPORTED_PLATFORM_ERROR
|
||||
)
|
||||
install(SCRIPT ${deploy_script})
|
||||
# the current tooling completely breaks in Flatpak, and is unnecessary there anyway
|
||||
if (NOT BUILD_FLATPAK)
|
||||
# We only need to call deploy on one executable
|
||||
qt_generate_deploy_app_script(
|
||||
TARGET novus-launcher
|
||||
OUTPUT_SCRIPT deploy_script
|
||||
NO_UNSUPPORTED_PLATFORM_ERROR
|
||||
)
|
||||
install(SCRIPT ${deploy_script})
|
||||
endif()
|
Loading…
Add table
Reference in a new issue