Skip to content

Commit 5a8783c

Browse files
author
linyuan.yang
committed
端口占用检查
1 parent b5b46e8 commit 5a8783c

7 files changed

Lines changed: 700 additions & 1 deletion

File tree

‎packages/app/src-tauri/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tauri-plugin-clipboard-manager = "2.3.2"
4040
sysinfo = "0.39.6"
4141

4242
[target.'cfg(target_os = "windows")'.dependencies]
43-
windows = { version = "0.62", features = ["Win32_Foundation", "Win32_Graphics_Dwm", "Win32_Security", "Win32_System_Registry", "Win32_System_RestartManager", "Win32_System_Threading", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
43+
windows = { version = "0.62", features = ["Win32_Foundation", "Win32_Graphics_Dwm", "Win32_NetworkManagement_IpHelper", "Win32_Networking_WinSock", "Win32_Security", "Win32_System_Registry", "Win32_System_RestartManager", "Win32_System_Threading", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
4444

4545
[target.'cfg(target_os = "macos")'.dependencies]
4646
objc2-foundation = { version = "0.3.2", features = ["NSProcessInfo"] }

‎packages/app/src-tauri/src/lib.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ pub fn run() {
182182
tools::hosts::hosts_read,
183183
tools::hosts::hosts_write,
184184
tools::file_locks::file_locks_check,
185+
tools::port_check::port_check_list,
186+
tools::port_check::port_check_kill,
185187
tools::keystore_gen::keystore_check_java,
186188
tools::keystore_gen::keystore_generate,
187189
tools::save_file::read_image_file,

‎packages/app/src-tauri/src/tools/mod.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pub mod external;
44
pub mod gdrive_login;
55
pub mod hosts;
66
pub mod keystore_gen;
7+
pub mod port_check;
78
pub mod file_locks;
89
pub mod save_file;
910
pub mod screenshot;

0 commit comments

Comments
 (0)