From cc3831a9b82a7fba72f07cb7e03cebf754174865 Mon Sep 17 00:00:00 2001 From: ZhangTingan Date: Thu, 25 Dec 2025 17:48:08 +0800 Subject: [PATCH] fix: [build] adapt dconfig in low-version envrionment Log: as title Bug: https://pms.uniontech.com/bug-view-345745.html --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ab3de44bf..e9c8cef88 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -86,6 +86,8 @@ set(configFile ${PROJECT_SOURCE_DIR}/assets/org.deepin.compressor.method.json) if (DEFINED DSG_DATA_DIR) message("-- DConfig is supported by DTK") dconfig_meta_files(APPID ${APPID} FILES ${configFile}) +else() + install(FILES ${configFile} DESTINATION ${CMAKE_INSTALL_DATADIR}/dsg/configs/org.deepin.compressor/) endif() install(TARGETS deepin-compressor DESTINATION ${CMAKE_INSTALL_BINDIR})