mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
recognize direct linux bundles in install context
This commit is contained in:
@@ -936,6 +936,14 @@ fn describe_install_context(context: &InstallContext) -> String {
|
||||
}
|
||||
}
|
||||
}
|
||||
InstallMethod::DirectBundle {
|
||||
bundle_dir,
|
||||
resources_dir,
|
||||
} => format!(
|
||||
"direct bundle (root {}, resources {})",
|
||||
bundle_dir.display(),
|
||||
resources_dir.display()
|
||||
),
|
||||
InstallMethod::Npm => {
|
||||
describe_method_with_package_layout("npm", context.package_layout.as_ref())
|
||||
}
|
||||
|
||||
@@ -119,6 +119,7 @@ pub(super) fn search_check() -> DoctorCheck {
|
||||
fn install_method_name(context: &InstallContext) -> &'static str {
|
||||
match &context.method {
|
||||
InstallMethod::Standalone { .. } => "standalone",
|
||||
InstallMethod::DirectBundle { .. } => "direct bundle",
|
||||
InstallMethod::Npm => "npm",
|
||||
InstallMethod::Bun => "bun",
|
||||
InstallMethod::Pnpm => "pnpm",
|
||||
|
||||
@@ -136,6 +136,7 @@ fn update_action_label(context: &InstallContext) -> &'static str {
|
||||
InstallMethod::Pnpm => "pnpm add -g @openai/codex",
|
||||
InstallMethod::Brew => "brew upgrade --cask codex",
|
||||
InstallMethod::Standalone { .. } => "standalone installer",
|
||||
InstallMethod::DirectBundle { .. } => "manual direct bundle",
|
||||
InstallMethod::Other => "manual or unknown",
|
||||
}
|
||||
}
|
||||
@@ -147,6 +148,7 @@ fn fetch_latest_version(context: &InstallContext) -> Result<String, String> {
|
||||
| InstallMethod::Bun
|
||||
| InstallMethod::Pnpm
|
||||
| InstallMethod::Standalone { .. }
|
||||
| InstallMethod::DirectBundle { .. }
|
||||
| InstallMethod::Other => fetch_latest_github_release_version(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user