mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-04 16:57:32 +08:00
fix: alpha version
This commit is contained in:
parent
10426af3ad
commit
a891341e35
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "clash-verge",
|
||||
"version": "v2.2.3-alpha",
|
||||
"version": "2.2.3-alpha",
|
||||
"license": "GPL-3.0-only",
|
||||
"scripts": {
|
||||
"dev": "cross-env RUST_BACKTRACE=1 tauri dev -f verge-dev -- --profile fast-dev",
|
||||
|
@ -171,7 +171,7 @@ async function main(versionArg) {
|
||||
}
|
||||
|
||||
console.log(`[INFO]: Updating versions to: ${newVersion}`);
|
||||
await updatePackageVersion("v" + newVersion);
|
||||
await updatePackageVersion(newVersion);
|
||||
await updateCargoVersion(newVersion);
|
||||
await updateTauriConfigVersion(newVersion);
|
||||
console.log("[SUCCESS]: All version updates completed successfully!");
|
||||
@ -181,6 +181,8 @@ async function main(versionArg) {
|
||||
}
|
||||
}
|
||||
|
||||
// Example:
|
||||
// pnpm release-version 2.2.3-alpha
|
||||
// 设置命令行界面
|
||||
program
|
||||
.name("pnpm release-version")
|
||||
|
@ -1,9 +1,8 @@
|
||||
use super::CmdResult;
|
||||
use crate::{logging, module::mihomo::MihomoManager};
|
||||
use crate::module::mihomo::MihomoManager;
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn get_proxies() -> CmdResult<serde_json::Value> {
|
||||
println!("get_proxies");
|
||||
let mannager = MihomoManager::global();
|
||||
let proxies = mannager
|
||||
.refresh_proxies()
|
||||
@ -15,8 +14,7 @@ pub async fn get_proxies() -> CmdResult<serde_json::Value> {
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn get_providers_proxies() -> CmdResult<serde_json::Value> {
|
||||
println!("get_providers_proxies");
|
||||
let manager = MihomoManager::global();
|
||||
let mannager = MihomoManager::global();
|
||||
let providers = mannager
|
||||
.refresh_providers_proxies()
|
||||
.await
|
||||
|
Loading…
x
Reference in New Issue
Block a user