Files
galaxy/crates/warp_core/src/macos.rs
T

13 lines
360 B
Rust

use anyhow::Result;
use objc2_foundation::NSBundle;
/// Apple Developer Team ID used for code signing and validation.
pub const APPLE_TEAM_ID: &str = "2BBY89MBSN";
/// Get the path to the macOS `.app` bundle.
pub fn get_bundle_path() -> Result<String> {
let bundle = NSBundle::mainBundle();
let path = bundle.bundlePath();
Ok(path.to_string())
}