feat: Add LICENSE file and refactor MITM response handling and tracing.
This commit is contained in:
@@ -59,12 +59,16 @@ fn find_install_dir() -> Option<String> {
|
||||
#[cfg(target_os = "macos")]
|
||||
let candidates = [
|
||||
"/Applications/Antigravity.app/Contents",
|
||||
&format!("{}/Applications/Antigravity.app/Contents", std::env::var("HOME").unwrap_or_default()),
|
||||
&format!(
|
||||
"{}/Applications/Antigravity.app/Contents",
|
||||
std::env::var("HOME").unwrap_or_default()
|
||||
),
|
||||
];
|
||||
#[cfg(target_os = "windows")]
|
||||
let candidates = [
|
||||
&format!("{}\\Programs\\Antigravity", std::env::var("LOCALAPPDATA").unwrap_or_default()),
|
||||
];
|
||||
let candidates = [&format!(
|
||||
"{}\\Programs\\Antigravity",
|
||||
std::env::var("LOCALAPPDATA").unwrap_or_default()
|
||||
)];
|
||||
#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))]
|
||||
let candidates: [&str; 0] = [];
|
||||
|
||||
@@ -222,7 +226,10 @@ pub fn log_base() -> String {
|
||||
|
||||
/// Token file path.
|
||||
pub fn token_file_path() -> String {
|
||||
crate::platform::Platform::detect().token_path.to_string_lossy().to_string()
|
||||
crate::platform::Platform::detect()
|
||||
.token_path
|
||||
.to_string_lossy()
|
||||
.to_string()
|
||||
}
|
||||
|
||||
/// User-Agent string matching the Electron webview — computed once.
|
||||
|
||||
Reference in New Issue
Block a user