From 89fb73ae0cafa323406bca22cb3b0f6f95083713 Mon Sep 17 00:00:00 2001 From: momen Date: Fri, 10 Oct 2025 11:03:21 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=9B=B4=E6=96=B0=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=8C=85=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 17 +++++++++++------ debian/compat | 2 +- debian/rules | 24 ++++++++++++++++++++++-- src/appdelegate.h | 3 ++- 4 files changed, 36 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab9cd9c..cb94870 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,18 +17,23 @@ set(PROJECT_SOURCES src/mainwindow.cpp src/mainwindow.h src/mainwindow.ui + src/aptssupdater.h + src/aptssupdater.cpp + src/icons.qrc + src/appdelegate.h + src/appdelegate.cpp + src/applistmodel.h + src/applistmodel.cpp + src/downloadmanager.h + src/downloadmanager.cpp + src/ignoreconfig.h + src/ignoreconfig.cpp ) if(${QT_VERSION_MAJOR} GREATER_EQUAL 6) qt_add_executable(spark-update-tool MANUAL_FINALIZATION ${PROJECT_SOURCES} - src/aptssupdater.h src/aptssupdater.cpp - src/icons.qrc - src/appdelegate.h src/appdelegate.cpp - src/applistmodel.h src/applistmodel.cpp - src/downloadmanager.h src/downloadmanager.cpp - src/ignoreconfig.h src/ignoreconfig.cpp ) # Define target properties for Android with Qt 6 as: # set_property(TARGET spark-update-tool APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR diff --git a/debian/compat b/debian/compat index f11c82a..ca7bf83 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -9 \ No newline at end of file +13 \ No newline at end of file diff --git a/debian/rules b/debian/rules index 1159ac4..d9cedc7 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,27 @@ #!/usr/bin/make -f -%: - dh $@ +# 声明兼容性级别 +export DH_VERBOSE=1 +%: + dh $@ --buildsystem=cmake + +# 确保使用CMake进行配置 override_dh_auto_configure: dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr + +# 确保使用CMake进行构建 +override_dh_auto_build: + dh_auto_build + +# 确保使用CMake进行安装 +override_dh_auto_install: + dh_auto_install + +# 确保使用CMake进行清理 +override_dh_auto_clean: + dh_auto_clean + +# 确保使用CMake进行依赖解析 +override_dh_shlibdeps: + dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info \ No newline at end of file diff --git a/src/appdelegate.h b/src/appdelegate.h index 9385a33..bedd645 100644 --- a/src/appdelegate.h +++ b/src/appdelegate.h @@ -5,7 +5,8 @@ #include #include #include -#include +#include +#include #include "downloadmanager.h"