From 4f6d1b7753673f3aedf8a4c308ab62679d360537 Mon Sep 17 00:00:00 2001 From: JSR Date: Wed, 18 Mar 2026 17:38:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Tauri=20=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF=E5=B9=B6?= =?UTF-8?q?=E8=A1=A5=E5=85=85=20Agent=20=E6=8F=90=E4=BA=A4=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agents.md | 11 +++++++++++ src-tauri/src/commands/app.rs | 1 + src-tauri/tauri.conf.json | 5 +---- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 agents.md 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": {