fix: compile privileged VPN scripts on Unix

This commit is contained in:
Kevin Yue committed 2026-07-30 15:45:13 +08:00
1 parent fd9b48cd90
commit e066362c92
4 files changed
+7 -2

No files matched your search

+1
View File
@@ -685,6 +685,7 @@ jobs:
git \
rust \
libiconv \
bzip2 \
gettext-tools \
autoconf \
automake \
+1
View File
@@ -122,6 +122,7 @@ impl Cli {
));
let mut vpn_task = VpnTask::new(ws_req_rx, vpn_state_tx, externally_brokered, trusted_csd_uid);
#[cfg(target_os = "macos")]
let idle_vpn_state_rx = vpn_state_rx.clone();
let ws_server = WsServer::new(
env!("CARGO_PKG_VERSION"),
@@ -5,7 +5,8 @@ use super::selection::{ScriptSource, select};
pub(crate) fn builder(server: &str, cookie: &str, args: &ConnectArgs) -> anyhow::Result<VpnBuilder> {
let installed = gpservice::vpnc_script::installed_script()?;
match select(installed.as_deref(), args.vpnc_script()) {
let legacy = args.vpnc_script();
match select(installed.as_deref(), legacy.as_deref()) {
ScriptSource::Installed(path) => {
Ok(Vpn::builder(server, cookie).script_path(Some(path.to_string_lossy().into_owned())))
}
+3 -1
View File
@@ -1,7 +1,9 @@
pub(crate) mod command_traits;
mod command_traits;
mod desktop_session_env;
pub(crate) mod gui_helper_launcher;
pub use command_traits::CommandExt;
pub mod auth_launcher;
pub mod gui_launcher;
pub mod hip_launcher;