mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
d02db8b43d
- Add `codex app <path>` to launch the Codex Desktop app. - On macOS, auto-downloads the DMG if missing; non-macOS prints a link to chatgpt.com/codex.
12 lines
316 B
Rust
12 lines
316 B
Rust
#[cfg(target_os = "macos")]
|
|
mod mac;
|
|
|
|
/// Run the app install/open logic for the current OS.
|
|
#[cfg(target_os = "macos")]
|
|
pub async fn run_app_open_or_install(
|
|
workspace: std::path::PathBuf,
|
|
download_url: String,
|
|
) -> anyhow::Result<()> {
|
|
mac::run_mac_app_open_or_install(workspace, download_url).await
|
|
}
|