Skip to content

Commit e5fea04

Browse files
committed
fix(ci): add xdg-utils for ARM64 AppImage and suppress dead_code warnings
- Add xdg-utils dependency for xdg-mime binary required by AppImage bundler - Remove unused McpStatus struct from gemini_mcp.rs (duplicate of claude_mcp.rs) - Add #![allow(dead_code)] to proxy models reserved for future type-safe API
1 parent b8bd1d3 commit e5fea04

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ jobs:
5959
rpm \
6060
flatpak \
6161
flatpak-builder \
62-
elfutils
62+
elfutils \
63+
xdg-utils
6364
# GTK/GLib stack for gdk-3.0, glib-2.0, gio-2.0
6465
sudo apt-get install -y --no-install-recommends \
6566
libgtk-3-dev \

src-tauri/src/gemini_mcp.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use serde::{Deserialize, Serialize};
21
use serde_json::{Map, Value};
32
use std::fs;
43
use std::path::{Path, PathBuf};
@@ -7,14 +6,6 @@ use crate::config::atomic_write;
76
use crate::error::AppError;
87
use crate::gemini_config::get_gemini_settings_path;
98

10-
#[derive(Debug, Clone, Serialize, Deserialize)]
11-
#[serde(rename_all = "camelCase")]
12-
pub struct McpStatus {
13-
pub user_config_path: String,
14-
pub user_config_exists: bool,
15-
pub server_count: usize,
16-
}
17-
189
/// 获取 Gemini MCP 配置文件路径(~/.gemini/settings.json)
1910
fn user_config_path() -> PathBuf {
2011
get_gemini_settings_path()

src-tauri/src/proxy/providers/models/anthropic.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//!
33
//! 用于 Anthropic Messages API 的请求/响应格式转换
44
5+
#![allow(dead_code)]
6+
57
use serde::{Deserialize, Serialize};
68
use serde_json::Value;
79

src-tauri/src/proxy/providers/models/openai.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//!
33
//! 用于 OpenAI Chat Completions API 的请求/响应格式转换
44
5+
#![allow(dead_code)]
6+
57
use serde::{Deserialize, Serialize};
68
use serde_json::Value;
79

0 commit comments

Comments
 (0)