feat: App support for Intel homebrew builds (#594)

This commit is contained in:
Nanami Nakano authored and GitHub committed 2026-04-26 21:04:20 +08:00
1 parent 4f477901d9
commit dad4f13f64
3 files changed
+29 -10

No files matched your search

+6 -2
View File
@@ -10,8 +10,10 @@ const VPNC_SCRIPT_LOCATIONS: &[&str] = &[
"/etc/vpnc/vpnc-script",
"/etc/openconnect/vpnc-script",
"/usr/libexec/vpnc-scripts/vpnc-script",
#[cfg(target_os = "macos")]
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
"/opt/homebrew/etc/vpnc/vpnc-script",
#[cfg(all(target_os = "macos", target_arch = "x86_64"))]
"/usr/local/etc/vpnc/vpnc-script",
];
const CSD_WRAPPER_LOCATIONS: &[&str] = &[
@@ -22,8 +24,10 @@ const CSD_WRAPPER_LOCATIONS: &[&str] = &[
"/usr/lib/aarch64-linux-gnu/openconnect/hipreport.sh",
"/usr/lib/openconnect/hipreport.sh",
"/usr/libexec/openconnect/hipreport.sh",
#[cfg(target_os = "macos")]
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
"/opt/homebrew/opt/openconnect/libexec/openconnect/hipreport.sh",
#[cfg(all(target_os = "macos", target_arch = "x86_64"))]
"/usr/local/opt/openconnect/libexec/openconnect/hipreport.sh",
];
fn find_executable(locations: &[&'static str]) -> Option<&'static str> {