diff --git a/agents.md b/agents.md new file mode 100644 index 0000000..e6170ac --- /dev/null +++ b/agents.md @@ -0,0 +1,11 @@ +# Agent Collaboration Rules + +## 提交规范 +- 每次代码改动都必须使用中文 `commit message`。 +- 完成提交后必须推送到远程仓库对应分支(`git push`)。 + +## 执行流程 +1. 完成代码修改。 +2. 自检并确保可构建/可运行。 +3. 使用中文提交信息执行 `git commit`。 +4. 立即执行 `git push` 推送远程。 diff --git a/src-tauri/src/commands/app.rs b/src-tauri/src/commands/app.rs index dd13e65..d052149 100644 --- a/src-tauri/src/commands/app.rs +++ b/src-tauri/src/commands/app.rs @@ -18,6 +18,7 @@ pub async fn register_url_protocol( app: AppHandle, _state: tauri::State<'_, Arc>>, ) -> Result, String> { + #[cfg(target_os = "windows")] let protocol = "secscore"; #[cfg(target_os = "windows")] diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index e73f758..c5f00a1 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -42,10 +42,7 @@ "active": true, "targets": "all", "icon": [ - "icons/32x32.png", - "icons/128x128.png", - "icons/128x128@2x.png", - "icons/icon.icns", + "icons/icon.png", "icons/icon.ico" ], "windows": {