Skip to content

feat: complete MVP - autostart, multi-platform CI, DX improvements#1

Merged
xsharp merged 3 commits intomainfrom
dev
Mar 1, 2026
Merged

feat: complete MVP - autostart, multi-platform CI, DX improvements#1
xsharp merged 3 commits intomainfrom
dev

Conversation

@xsharp
Copy link
Copy Markdown
Contributor

@xsharp xsharp commented Mar 1, 2026

Summary

  • 开机自启动: 集成 tauri-plugin-autostart,设置页面添加开关,支持 macOS LaunchAgent
  • 多平台发布流水线: release.yml 启用 Windows + Linux 构建矩阵(ubuntu-22.04, windows-latest)
  • 打开数据库文件位置: 设置 > 数据 > 数据库区域添加 "Open File Location" 按钮
  • make run target: 构建 → kill 旧进程 → 启动新实例,一条命令快速测试
  • Clippy 警告清理: 移除死代码、优化 contains() 调用、使用 c"" 字面量

Changed files (15 files, +215/-36)

Area Files
Rust backend commands.rs, lib.rs, Cargo.toml, Cargo.lock
Frontend SettingsPage.tsx, tauri-api.ts, i18n (en/zh)
CI/CD release.yml
DX Makefile
Lint fixes active_window.rs, state_monitor.rs, tracker.rs
Config capabilities/default.json, pnpm-workspace.yaml

Test plan

  • make lint 零警告(tsc + cargo clippy)
  • make run 构建成功并启动应用
  • 设置 → 常规 → 开机自启动开关切换正常
  • 设置 → 数据 → "打开文件位置"按钮在 Finder 中定位 db 文件
  • CI 三平台构建通过(macOS ARM/Intel, Ubuntu, Windows)

🤖 Generated with Claude Code

justdn and others added 3 commits February 28, 2026 23:41
…rm support

- Add tauri-plugin-autostart dependency and integrate with app initialization
- Implement backend commands to get and set autostart status
- Add autostart toggle UI in settings page with i18n support for en-US and zh-CN
- Extend GitHub Actions release workflow to build for Ubuntu and Windows platforms
- Add Ubuntu system dependencies for Tauri builds
- Refactor tracker service by removing unused TrackingState struct
- Minor code improvements: use contains() for array checks and safer C string handling
- Add "Open File Location" button in Settings > Data > Database section
  using @tauri-apps/plugin-opener revealItemInDir
- Add `make run` Makefile target: build, kill old instance, launch app
- Add i18n keys for openLocation (en-US / zh-CN)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The file was mistakenly created by `pnpm config set --location=project`.
Move onlyBuiltDependencies to package.json pnpm field instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@xsharp xsharp merged commit ad13b6d into main Mar 1, 2026
1 check passed
@xsharp xsharp deleted the dev branch March 9, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants