feat: add search, recurring schedules, and Windows packaging
- Add title/description search with Ctrl+F and a result dialog\n- Support daily/weekly/monthly recurring blocks with conflict skipping\n- Add CPack NSIS packaging, MinGW release preset, and deploy script\n- Add window/view/list/dialog fade animations\n- Document multi-device conflict behavior and update validation screenshots
This commit is contained in:
@@ -30,3 +30,45 @@ if(GO_EXECUTABLE)
|
||||
endif()
|
||||
|
||||
add_subdirectory(client)
|
||||
|
||||
install(FILES README.md DESTINATION .)
|
||||
install(FILES client/3rd/ElaWidgetTools/LICENSE
|
||||
DESTINATION licenses RENAME ElaWidgetTools-LICENSE)
|
||||
install(FILES client/3rd/tomlplusplus/LICENSE
|
||||
DESTINATION licenses RENAME tomlplusplus-LICENSE)
|
||||
|
||||
if(WIN32)
|
||||
if(NOT SCHEDULE_WINDEPLOYQT)
|
||||
message(FATAL_ERROR "windeployqt was not configured; check the Qt/MinGW preset paths")
|
||||
endif()
|
||||
set(_compiler_runtime_arg "")
|
||||
if(MSVC)
|
||||
set(_compiler_runtime_arg "--compiler-runtime")
|
||||
endif()
|
||||
install(CODE "
|
||||
set(_stage \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}\")
|
||||
execute_process(
|
||||
COMMAND \"${SCHEDULE_WINDEPLOYQT}\" ${_compiler_runtime_arg} --dir \"\${_stage}\" \"\${_stage}/Schedule.exe\"
|
||||
RESULT_VARIABLE _deploy_result
|
||||
)
|
||||
if(NOT _deploy_result EQUAL 0)
|
||||
message(FATAL_ERROR \"windeployqt failed during install: \${_deploy_result}\")
|
||||
endif()
|
||||
")
|
||||
|
||||
set(CPACK_GENERATOR "NSIS")
|
||||
set(CPACK_PACKAGE_NAME "Schedule")
|
||||
set(CPACK_PACKAGE_VENDOR "Misaki")
|
||||
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
|
||||
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Schedule")
|
||||
set(CPACK_PACKAGE_EXECUTABLES "Schedule;AI 日程")
|
||||
set(CPACK_CREATE_DESKTOP_LINKS "Schedule")
|
||||
set(CPACK_NSIS_DISPLAY_NAME "AI 日程")
|
||||
set(CPACK_NSIS_PACKAGE_NAME "AI 日程")
|
||||
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
|
||||
set(CPACK_NSIS_MODIFY_PATH OFF)
|
||||
set(CPACK_NSIS_INSTALLED_ICON_NAME "Schedule.exe")
|
||||
set(CPACK_NSIS_MUI_FINISHPAGE_RUN "Schedule.exe")
|
||||
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md")
|
||||
include(CPack)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user