feat: 添加跨平台开机自启动功能 #74
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
功能概述
实现了跨平台开机自启动功能,允许用户在设置页面控制应用是否随系统启动。
主要改动
后端 (Rust)
GlobalConfig.startup_enabled存储用户配置auto_startup.rs实现跨平台自启动管理HKCU\Software\Microsoft\Windows\CurrentVersion\Run~/Library/LaunchAgents/com.duckcoding.app.plist~/.config/autostart/duckcoding.desktopget_startup_config(): 获取当前配置并自动同步系统状态update_startup_config(enabled): 更新配置并应用到系统前端 (TypeScript/React)
getStartupConfig、updateStartupConfig完整类型架构设计
AppError类型测试情况
风险评估
Test Plan
自动化测试
npm run check全部通过手动测试清单
截图
(手动测试后补充截图)
相关 Issue
无(主动功能增强)
Checklist
npm run check且全部通过