refactor: 项目正式更名为 FrpcPilot,同步更新所有相关标识
本次修改将项目名称从 Frpilot 全面更改为 FrpcPilot,涉及: - 应用名称、窗口标题、系统托盘提示、GitHub 仓库地址 - 包标识:npm 包名、Rust crate 名称、Tauri identifier - 本地存储键前缀、数据库文件名、系统托盘 ID - 文档、国际化文案、配置文件、代码注释等所有关联内容
This commit is contained in:
Generated
+1
-1
@@ -1267,7 +1267,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "frpilot"
|
||||
name = "frpcpilot"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "frpilot"
|
||||
name = "frpcpilot"
|
||||
version = "0.1.0"
|
||||
description = "一个基于 Tauri 2 + Vue 3 + TypeScript 的 [frp](https://github.com/fatedier/frp) 可视化客户端,帮助用户快速配置 frpc 版本、服务器与隧道。"
|
||||
authors = ["SparksFly"]
|
||||
@@ -11,7 +11,7 @@ edition = "2024"
|
||||
# The `_lib` suffix may seem redundant but it is necessary
|
||||
# to make the lib name unique and wouldn't conflict with the bin name.
|
||||
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
|
||||
name = "frpilot_lib"
|
||||
name = "frpcpilot_lib"
|
||||
crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
|
||||
[workspace]
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
frpilot_lib::run()
|
||||
frpcpilot_lib::run()
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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,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` 事件。
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "Frpilot",
|
||||
"productName": "FrpcPilot",
|
||||
"version": "../package.json",
|
||||
"identifier": "Frpilot",
|
||||
"identifier": "FrpcPilot",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
"devUrl": "http://localhost:1420",
|
||||
@@ -12,7 +12,7 @@
|
||||
"app": {
|
||||
"windows": [
|
||||
{
|
||||
"title": "Frpilot",
|
||||
"title": "FrpcPilot",
|
||||
"width": 1100,
|
||||
"height": 720,
|
||||
"minWidth": 900,
|
||||
@@ -42,8 +42,8 @@
|
||||
"active": true,
|
||||
"dialog": false,
|
||||
"endpoints": [
|
||||
"https://ghproxy.net/https://github.com/SparksFly91/Frpilot/releases/latest/download/latest.json",
|
||||
"https://github.com/SparksFly91/Frpilot/releases/latest/download/latest.json"
|
||||
"https://ghproxy.net/https://github.com/SparksFly91/FrpcPilot/releases/latest/download/latest.json",
|
||||
"https://github.com/SparksFly91/FrpcPilot/releases/latest/download/latest.json"
|
||||
],
|
||||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEU0REVGMTREODFFOTI2MUEKUldRYUp1bUJUZkhlNU1qRmlPQm5xSmdQd24waFltVmNtTjlUallYVmdva1VGNkp5bTVGcVlsZUgK"
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"app": {
|
||||
"windows": [
|
||||
{
|
||||
"title": "Frpilot",
|
||||
"title": "FrpcPilot",
|
||||
"width": 1100,
|
||||
"height": 720,
|
||||
"minWidth": 900,
|
||||
|
||||
Reference in New Issue
Block a user