BigPizzaV3/CodexPlusPlus · error

当前平台暂不支持安装 Codex++ 入口

Error message

当前平台暂不支持安装 Codex++ 入口

What it means

Thrown by platform_install on the cfg(not(any(windows, target_os = "macos"))) fallback — i.e. Linux or any other platform. Entry-point installation (shortcuts/.app bundles) is only implemented for Windows and macOS, so on unsupported platforms install_entrypoints/repair_entrypoints immediately bail with this message; the "fault" is the current OS, not any user input.

Source

Thrown at crates/codex-plus-core/src/install/mod.rs:184

        "user-dirs-desktop"
    }
}

fn platform_install(options: &InstallOptions) -> anyhow::Result<()> {
    #[cfg(windows)]
    {
        windows::install_shortcuts(options)
    }

    #[cfg(target_os = "macos")]
    {
        macos::install_app_bundles(options)
    }

    #[cfg(not(any(windows, target_os = "macos")))]
    {
        let _ = options;
        anyhow::bail!("当前平台暂不支持安装 Codex++ 入口")
    }
}

fn platform_uninstall(options: &InstallOptions) -> anyhow::Result<()> {
    #[cfg(windows)]
    {
        windows::uninstall_shortcuts(options)
    }

    #[cfg(target_os = "macos")]
    {
        macos::uninstall_app_bundles(options)
    }

    #[cfg(not(any(windows, target_os = "macos")))]
    {
        let _ = options;
        anyhow::bail!("当前平台暂不支持卸载 Codex++ 入口")

View on GitHub (pinned to f2074595a2)

Solutions

  1. 在 Windows 或 macOS 上运行安装入口功能
  2. 在 Linux 等平台手动创建启动方式
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/codex-plus-core/src/install/mod.rs:184 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BigPizzaV3/CodexPlusPlus@f2074595a2 (2026-08-23). Data as JSON: /api/errors/81d99658577fb51c. Report an issue: GitHub.