refactor: 项目正式更名为 FrpcPilot,同步更新所有相关标识

本次修改将项目名称从 Frpilot 全面更改为 FrpcPilot,涉及:
- 应用名称、窗口标题、系统托盘提示、GitHub 仓库地址
- 包标识:npm 包名、Rust crate 名称、Tauri identifier
- 本地存储键前缀、数据库文件名、系统托盘 ID
- 文档、国际化文案、配置文件、代码注释等所有关联内容
This commit is contained in:
Yuhang Wu
2026-10-16 15:36:02 +08:00
parent 57b4d7be5a
commit 140c517191
33 changed files with 268 additions and 188 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ macro_rules! frp_fields {
fn http_client() -> Result<reqwest::Client, reqwest::Error> {
reqwest::Client::builder()
.user_agent("Frpilot/0.1 (+https://github.com/fatedier/frp)")
.user_agent("FrpcPilot/0.1 (+https://github.com/fatedier/frp)")
.connect_timeout(Duration::from_secs(15))
.build()
}
+1 -1
View File
@@ -2,5 +2,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
frpilot_lib::run()
frpcpilot_lib::run()
}
+1 -1
View File
@@ -329,7 +329,7 @@ pub struct FrpcLogEvent {
pub time: Option<String>,
/// 日志级别:INFO / WARN / ERROR / DEBUG / TRACE
pub level: String,
/// 来源:stdout / stderr / system(system 为 Frpilot 自身补充的日志)
/// 来源:stdout / stderr / system(system 为 FrpcPilot 自身补充的日志)
pub source: String,
/// 日志内容
pub message: String,
+2 -2
View File
@@ -12,9 +12,9 @@ use crate::models::{Server, Tunnel};
pub fn generate_frpc_config(server: &Server, tunnels: &[Tunnel]) -> String {
let mut out = String::new();
out.push_str("# 该文件由 Frpilot 自动生成,请勿手动修改(重新启动 Frpc 会覆盖此文件)\n\n");
out.push_str("# 该文件由 FrpcPilot 自动生成,请勿手动修改(重新启动 Frpc 会覆盖此文件)\n\n");
// 日志:输出到控制台,由 Frpilot 采集并实时展示
// 日志:输出到控制台,由 FrpcPilot 采集并实时展示
// 关闭 ANSI 颜色,避免日志中混入 `\x1b[1;34m` 之类的转义码
out.push_str("log.to = \"console\"\n");
out.push_str("log.level = \"info\"\n");
+1 -1
View File
@@ -5,7 +5,7 @@ pub async fn init_pool(app: &AppHandle) -> Result<SqlitePool, sqlx::Error> {
// 数据库文件路径
let app_dir = app.path().app_data_dir().expect("无法获取APP数据目录");
std::fs::create_dir_all(&app_dir).unwrap();
let db_path = app_dir.join("frpilot.db");
let db_path = app_dir.join("frpcpilot.db");
// 初始化数据库连接池
let options = SqliteConnectOptions::new()
.filename(&db_path)
+1 -1
View File
@@ -1,7 +1,7 @@
//! Frpc 进程管理。
//!
//! 通过 `std::process::Command` 直接拉起 frpc 可执行文件(**刻意绕开 plugin-shell**):
//! - frpc 与主进程互相独立,frpc 异常退出不会影响 Frpilot 本体;
//! - frpc 与主进程互相独立,frpc 异常退出不会影响 FrpcPilot 本体;
//! - Windows 下使用 `CREATE_NO_WINDOW` 启动,避免弹出黑色控制台窗口;
//! - stdout / stderr 通过管道读取,按行解析后以 `frpc-log` 事件实时推送给前端;
//! - 后台守护线程轮询子进程状态,退出时推送 `frpc-exit` 事件。