Skip to content

Commit 8e86145

Browse files
committed
recover remote bin
1 parent 22e5738 commit 8e86145

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

crates/q_cli/src/cli/mod.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -608,13 +608,10 @@ fn qchat_path() -> Result<PathBuf> {
608608

609609
#[cfg(target_os = "macos")]
610610
fn qchat_path() -> Result<PathBuf> {
611-
Ok(PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../target/debug/chat_cli"))
612-
613-
// use fig_util::consts::CHAT_BINARY_NAME;
614-
// use macos_utils::bundle::get_bundle_path_for_executable;
611+
use fig_util::consts::CHAT_BINARY_NAME;
612+
use macos_utils::bundle::get_bundle_path_for_executable;
615613

616-
// Ok(get_bundle_path_for_executable(CHAT_BINARY_NAME).unwrap_or(home_local_bin()?.
617-
// join(CHAT_BINARY_NAME)))
614+
Ok(get_bundle_path_for_executable(CHAT_BINARY_NAME).unwrap_or(home_local_bin()?.join(CHAT_BINARY_NAME)))
618615
}
619616

620617
#[cfg(test)]

0 commit comments

Comments
 (0)