完成 0.2.0 预发布收口与中文安装器

This commit is contained in:
2026-09-09 01:20:45 +08:00
parent 90262aaf6d
commit 1f5e26c361
30 changed files with 1826 additions and 121 deletions
+19 -2
View File
@@ -14,7 +14,7 @@ if (NOT EXISTS "${PET_SOURCE_ROOT}/src" OR NOT EXISTS "${PET_SOURCE_ROOT}/CMakeL
message(FATAL_ERROR "PET_SOURCE_ROOT does not point to a QtDesktopPet source tree: ${PET_SOURCE_ROOT}")
endif()
find_package(Qt6 REQUIRED COMPONENTS Core)
find_package(Qt6 REQUIRED COMPONENTS Core Network)
add_executable(QtDesktopPetCoreTests
include/TestHarness.h
@@ -24,6 +24,8 @@ add_executable(QtDesktopPetCoreTests
tests/weather/WeatherTests.cpp
tests/web/WebCapabilityTests.cpp
tests/ai/ConversationStoreTests.cpp
tests/ai/AIDiagnosticsTests.cpp
tests/config/ConfigRecoveryTests.cpp
${PET_SOURCE_ROOT}/src/assistant/IntentRouter.h
${PET_SOURCE_ROOT}/src/assistant/IntentRouter.cpp
${PET_SOURCE_ROOT}/src/assistant/CommandDispatcher.h
@@ -35,6 +37,10 @@ add_executable(QtDesktopPetCoreTests
${PET_SOURCE_ROOT}/src/reminder/ReminderTypes.cpp
${PET_SOURCE_ROOT}/src/weather/WeatherParser.h
${PET_SOURCE_ROOT}/src/weather/WeatherParser.cpp
${PET_SOURCE_ROOT}/src/weather/WeatherLocationResolver.h
${PET_SOURCE_ROOT}/src/weather/WeatherLocationResolver.cpp
${PET_SOURCE_ROOT}/src/weather/WeatherManager.h
${PET_SOURCE_ROOT}/src/weather/WeatherManager.cpp
${PET_SOURCE_ROOT}/src/weather/WeatherSummaryFormatter.h
${PET_SOURCE_ROOT}/src/weather/WeatherSummaryFormatter.cpp
${PET_SOURCE_ROOT}/src/weather/WeatherTypes.h
@@ -45,9 +51,20 @@ add_executable(QtDesktopPetCoreTests
${PET_SOURCE_ROOT}/src/web/WebConfig.h
${PET_SOURCE_ROOT}/src/config/AIConfig.h
${PET_SOURCE_ROOT}/src/config/AIConfig.cpp
${PET_SOURCE_ROOT}/src/config/AppConfig.h
${PET_SOURCE_ROOT}/src/config/ConfigManager.h
${PET_SOURCE_ROOT}/src/config/ConfigManager.cpp
${PET_SOURCE_ROOT}/src/ai/AIDiagnostics.h
${PET_SOURCE_ROOT}/src/ai/AIDiagnostics.cpp
${PET_SOURCE_ROOT}/src/ai/ConversationStore.h
${PET_SOURCE_ROOT}/src/ai/ConversationStore.cpp
${PET_SOURCE_ROOT}/src/ai/LLMTypes.h
${PET_SOURCE_ROOT}/src/weather/WeatherStore.h
${PET_SOURCE_ROOT}/src/weather/WeatherStore.cpp
${PET_SOURCE_ROOT}/src/web/WebStore.h
${PET_SOURCE_ROOT}/src/web/WebStore.cpp
${PET_SOURCE_ROOT}/src/reminder/ReminderStore.h
${PET_SOURCE_ROOT}/src/reminder/ReminderStore.cpp
${PET_SOURCE_ROOT}/src/util/Logger.h
${PET_SOURCE_ROOT}/src/util/Logger.cpp
)
@@ -58,7 +75,7 @@ target_include_directories(QtDesktopPetCoreTests
"${PET_SOURCE_ROOT}"
)
target_link_libraries(QtDesktopPetCoreTests PRIVATE Qt6::Core)
target_link_libraries(QtDesktopPetCoreTests PRIVATE Qt6::Core Qt6::Network)
include(CTest)
add_test(NAME QtDesktopPetCoreTests COMMAND QtDesktopPetCoreTests)