feat: install trusted VPN scripts

This commit is contained in:
Kevin Yue committed 2026-07-30 15:00:24 +08:00
1 parent 2c29dda2ac
commit fd9b48cd90
23 files changed
+454 -11

No files matched your search

+11
View File
@@ -3,6 +3,8 @@ use std::{
path::{Path, PathBuf},
};
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"))]
use crate::constants::GP_VPNC_SCRIPT_INSTALLER_BINARY;
use crate::constants::{GP_AUTH_BINARY, GP_CLIENT_BINARY, GP_GUI_BINARY, GP_GUI_HELPER_BINARY, GP_SERVICE_BINARY};
pub fn gpclient() -> PathBuf {
@@ -13,6 +15,15 @@ pub fn gpservice() -> PathBuf {
resolve("GP_SERVICE_BINARY", "gpservice", GP_SERVICE_BINARY)
}
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"))]
pub fn gp_vpnc_script_installer() -> PathBuf {
resolve(
"GP_VPNC_SCRIPT_INSTALLER_BINARY",
"gp-vpnc-script-installer",
GP_VPNC_SCRIPT_INSTALLER_BINARY,
)
}
pub fn gpauth() -> PathBuf {
resolve("GP_AUTH_BINARY", "gpauth", GP_AUTH_BINARY)
}