mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
parent
19e2527b4b
commit
dfb8f9a160
3 changed files with 10 additions and 4 deletions
|
@ -10,6 +10,7 @@ if(UNIX AND NOT APPLE)
|
||||||
else()
|
else()
|
||||||
option(MAN "Build man page" OFF)
|
option(MAN "Build man page" OFF)
|
||||||
endif()
|
endif()
|
||||||
|
option(FLATPAK "Set this only if Nheko is built as a flatpak" OFF)
|
||||||
|
|
||||||
set(
|
set(
|
||||||
CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/toolchain.cmake"
|
CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/toolchain.cmake"
|
||||||
|
@ -637,6 +638,9 @@ elseif(WIN32)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
target_link_libraries (nheko PRIVATE Qt5::DBus)
|
target_link_libraries (nheko PRIVATE Qt5::DBus)
|
||||||
|
if (FLATPAK)
|
||||||
|
target_compile_definitions(nheko PRIVATE NHEKO_FLATPAK)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
target_include_directories(nheko PRIVATE src includes third_party/blurhash third_party/cpp-httplib-0.5.12)
|
target_include_directories(nheko PRIVATE src includes third_party/blurhash third_party/cpp-httplib-0.5.12)
|
||||||
|
|
||||||
|
|
|
@ -200,6 +200,7 @@ modules:
|
||||||
- -DLMDBXX_INCLUDE_DIR=.deps/lmdbxx
|
- -DLMDBXX_INCLUDE_DIR=.deps/lmdbxx
|
||||||
- -DCOMPILE_QML=ON
|
- -DCOMPILE_QML=ON
|
||||||
- -DMAN=OFF
|
- -DMAN=OFF
|
||||||
|
- -DFLATPAK=ON
|
||||||
buildsystem: cmake-ninja
|
buildsystem: cmake-ninja
|
||||||
name: nheko
|
name: nheko
|
||||||
sources:
|
sources:
|
||||||
|
|
|
@ -231,10 +231,11 @@ main(int argc, char *argv[])
|
||||||
#if !defined(Q_OS_MAC)
|
#if !defined(Q_OS_MAC)
|
||||||
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("nheko"), QIcon{":/logos/nheko.png"}));
|
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("nheko"), QIcon{":/logos/nheko.png"}));
|
||||||
#endif
|
#endif
|
||||||
if (userdata.isEmpty() || userdata == QLatin1String("default"))
|
#ifdef NHEKO_FLATPAK
|
||||||
app.setDesktopFileName(QStringLiteral("nheko"));
|
app.setDesktopFileName(QStringLiteral("io.github.NhekoReborn.Nheko"));
|
||||||
else
|
#else
|
||||||
app.setDesktopFileName("nheko[" + userdata + "]");
|
app.setDesktopFileName(QStringLiteral("nheko"));
|
||||||
|
#endif
|
||||||
|
|
||||||
http::init();
|
http::init();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue