#Update 房间信息使用json格式获取,增加多选服务器和兼容(最多4个),更新部分包

This commit is contained in:
黑先森
2025-09-21 23:55:07 +08:00
parent 777ec9b982
commit a438c48fdc
13 changed files with 2009 additions and 2790 deletions
+661 -531
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "easytier-game"
version = "1.4.8"
version = "1.4.9"
homepage = "https://github.com/EasyTier/EasyTier"
repository = "https://github.com/EasyTier/EasytierGame"
description = "A simple network initiator based on Easytier"
+9 -1
View File
@@ -13,7 +13,6 @@ use sysinfo::System;
use tauri::tray::{MouseButton, MouseButtonState, TrayIconBuilder, TrayIconEvent};
use tauri::Emitter;
use tauri::Manager;
use windows::Win32::System::Variant::VARIANT;
use windows::core::{Interface, BSTR};
use windows::Win32::Foundation::VARIANT_BOOL;
use windows::Win32::NetworkManagement::IpHelper::{
@@ -22,6 +21,7 @@ use windows::Win32::NetworkManagement::IpHelper::{
use windows::Win32::Networking::WinSock::AF_UNSPEC;
use windows::Win32::System::Com::*;
use windows::Win32::System::TaskScheduler::*;
use windows::Win32::System::Variant::VARIANT;
// use std::ffi::CStr;
use windows::Win32::System::Power::SetThreadExecutionState;
@@ -273,6 +273,8 @@ struct MyResponse {
async fn get_members_by_cli() -> String {
let cli_path = get_tool_exe_path("\\easytier\\easytier-cli.exe");
match tokioCommand::new(&cli_path)
.arg("-o")
.arg("json")
.arg("peer")
.arg("list")
.creation_flags(0x08000000)
@@ -351,6 +353,12 @@ async fn download_easytier_zip(
let path = path::Path::new(&file_path);
println!("download easytier to {}", path.display());
if path.exists() {
match fs::remove_file(path) {
Ok(_) => println!("删除上次下载的Zip文件成功"),
Err(_) => log::error!("删除上次下载Zip的文件失败"),
}
}
let mut file = match File::create(&path) {
Err(why) => panic!("couldn't create {}", why),
+2 -2
View File
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "easytier-game",
"version": "1.4.8",
"version": "1.4.9",
"identifier": "com.tauri.easytier-game",
"build": {
@@ -12,7 +12,7 @@
"app": {
"windows": [
{
"title": "easytier-game 1.4.8",
"title": "easytier-game 1.4.9",
"label": "main",
"minWidth": 340,
"width": 340,