recognize direct linux bundles in install context

This commit is contained in:
Channing Conger
2026-07-10 01:28:59 +00:00
parent 0e692097c4
commit 1277fa61a8
7 changed files with 104 additions and 7 deletions
+8
View File
@@ -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())
}
+1
View File
@@ -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",
+2
View File
@@ -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(),
}
}