feat: 添加开机自启支持与开发版本提示

This commit is contained in:
Yuhang Wu
2026-10-22 16:36:11 +08:00
parent fcab06d28f
commit ffd0ef7935
10 changed files with 77 additions and 13 deletions
+6
View File
@@ -7,6 +7,12 @@ use tauri_helper::auto_collect_command;
use crate::models::{ApiResponse, SystemDetails, SystemInfo};
use crate::services::system::SystemStats;
#[tauri::command]
#[auto_collect_command]
pub fn is_autostart_supported() -> bool {
!tauri::is_dev() && !cfg!(debug_assertions)
}
/// 获取系统资源占用(CPU / 内存百分比)
#[tauri::command]
#[auto_collect_command]