Remove Codex CLI app and assets (#45802)

Remove Codex CLI from maintained apps: delete winget input manifest and
install/uninstall scripts, remove the generated windows output
(versions/refs) and the apps.json entry. Also remove frontend icon
component and its image asset, and update the icons index to drop the
Codex CLI mapping.
This commit is contained in:
Allen Houchins
2026-05-19 09:55:05 -05:00
committed by GitHub
parent 91b3dd697c
commit 4ed988fc11
8 changed files with 0 additions and 130 deletions
@@ -1,13 +0,0 @@
{
"name": "Codex CLI",
"slug": "codex-cli/windows",
"package_identifier": "OpenAI.Codex",
"unique_identifier": "Codex CLI",
"install_script_path": "ee/maintained-apps/inputs/winget/scripts/codex-cli_install.ps1",
"uninstall_script_path": "ee/maintained-apps/inputs/winget/scripts/codex-cli_uninstall.ps1",
"exists_query": "SELECT 1 FROM file WHERE path = 'C:\\Program Files\\Codex CLI\\codex.exe' OR path LIKE '%\\AppData\\Local\\Programs\\Codex CLI\\codex.exe';",
"installer_arch": "x64",
"installer_type": "zip",
"installer_scope": "user",
"default_categories": ["Developer tools"]
}
@@ -1,59 +0,0 @@
# Codex ships as a .zip of portable binaries (winget NestedInstallerType: portable).
# INSTALLER_PATH points at the downloaded .zip.
# Prefer Program Files (matches Fleet validation + managed installs); fall back to %LOCALAPPDATA% without admin.
$ErrorActionPreference = "Stop"
$zipPath = "${env:INSTALLER_PATH}"
$machineRoot = Join-Path $env:ProgramFiles "Codex CLI"
$userRoot = Join-Path $env:LOCALAPPDATA "Programs\Codex CLI"
$extractDir = Join-Path $env:TEMP ("codex-winget-extract-" + [Guid]::NewGuid().ToString())
if (-not (Test-Path -LiteralPath $machineRoot)) {
try {
New-Item -ItemType Directory -Path $machineRoot -Force -ErrorAction Stop | Out-Null
$installRoot = $machineRoot
} catch {
New-Item -ItemType Directory -Path $userRoot -Force | Out-Null
$installRoot = $userRoot
}
} else {
$installRoot = $machineRoot
}
try {
if (-not (Test-Path -LiteralPath $zipPath)) {
Write-Host "Installer not found: $zipPath"
Exit 1
}
New-Item -ItemType Directory -Path $installRoot -Force | Out-Null
New-Item -ItemType Directory -Path $extractDir -Force | Out-Null
Expand-Archive -LiteralPath $zipPath -DestinationPath $extractDir -Force
# Matches winget manifest NestedInstallerFiles for x64
$mainExe = Join-Path $extractDir "codex-x86_64-pc-windows-msvc.exe"
if (-not (Test-Path -LiteralPath $mainExe)) {
Write-Host "Expected binary codex-x86_64-pc-windows-msvc.exe not found in archive"
Exit 1
}
$destExe = Join-Path $installRoot "codex.exe"
Copy-Item -LiteralPath $mainExe -Destination $destExe -Force
foreach ($extra in @(
"codex-command-runner.exe",
"codex-windows-sandbox-setup.exe"
)) {
$src = Join-Path $extractDir $extra
if (Test-Path -LiteralPath $src) {
Copy-Item -LiteralPath $src -Destination (Join-Path $installRoot $extra) -Force
}
}
Exit 0
} catch {
Write-Host "Error: $_"
Exit 1
} finally {
Remove-Item -LiteralPath $extractDir -Recurse -Force -ErrorAction SilentlyContinue
}
@@ -1,13 +0,0 @@
# Removes layouts created by codex-cli_install.ps1 (machine and per-user fallbacks).
$ErrorActionPreference = "Continue"
foreach ($installRoot in @(
(Join-Path $env:ProgramFiles "Codex CLI"),
(Join-Path $env:LOCALAPPDATA "Programs\Codex CLI")
)) {
if (Test-Path -LiteralPath $installRoot) {
Remove-Item -LiteralPath $installRoot -Recurse -Force
}
}
Exit 0
-7
View File
@@ -463,13 +463,6 @@
"unique_identifier": "Cloudflare WARP",
"description": "Cloudflare WARP enhances internet safety and performance by encrypting your data and optimizing connections for privacy."
},
{
"name": "Codex CLI",
"slug": "codex-cli/windows",
"platform": "windows",
"unique_identifier": "Codex CLI",
"description": "Codex CLI is OpenAIs coding agent that you can run locally from your terminal."
},
{
"name": "Connect Fonts",
"slug": "connect-fonts/darwin",
@@ -1,22 +0,0 @@
{
"versions": [
{
"version": "0.130.0",
"queries": {
"exists": "SELECT 1 FROM file WHERE path = 'C:\\Program Files\\Codex CLI\\codex.exe' OR path LIKE '%\\AppData\\Local\\Programs\\Codex CLI\\codex.exe';",
"patched": "SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM file WHERE (path = 'C:\\Program Files\\Codex CLI\\codex.exe' OR path LIKE '%\\AppData\\Local\\Programs\\Codex CLI\\codex.exe') AND version_compare(version, '0.130.0') < 0);"
},
"installer_url": "https://github.com/openai/codex/releases/download/rust-v0.130.0/codex-x86_64-pc-windows-msvc.exe.zip",
"install_script_ref": "8bb4b68b",
"uninstall_script_ref": "7e1fe544",
"sha256": "1aa3b56bcc825c0425185c5a7c17166cd9d56de673def0b93d48815c867d6356",
"default_categories": [
"Developer tools"
]
}
],
"refs": {
"7e1fe544": "# Removes layouts created by codex-cli_install.ps1 (machine and per-user fallbacks).\n\n$ErrorActionPreference = \"Continue\"\nforeach ($installRoot in @(\n (Join-Path $env:ProgramFiles \"Codex CLI\"),\n (Join-Path $env:LOCALAPPDATA \"Programs\\Codex CLI\")\n)) {\n if (Test-Path -LiteralPath $installRoot) {\n Remove-Item -LiteralPath $installRoot -Recurse -Force\n }\n}\n\nExit 0\n",
"8bb4b68b": "# Codex ships as a .zip of portable binaries (winget NestedInstallerType: portable).\n# INSTALLER_PATH points at the downloaded .zip.\n# Prefer Program Files (matches Fleet validation + managed installs); fall back to %LOCALAPPDATA% without admin.\n\n$ErrorActionPreference = \"Stop\"\n$zipPath = \"${env:INSTALLER_PATH}\"\n$machineRoot = Join-Path $env:ProgramFiles \"Codex CLI\"\n$userRoot = Join-Path $env:LOCALAPPDATA \"Programs\\Codex CLI\"\n$extractDir = Join-Path $env:TEMP (\"codex-winget-extract-\" + [Guid]::NewGuid().ToString())\n\nif (-not (Test-Path -LiteralPath $machineRoot)) {\n try {\n New-Item -ItemType Directory -Path $machineRoot -Force -ErrorAction Stop | Out-Null\n $installRoot = $machineRoot\n } catch {\n New-Item -ItemType Directory -Path $userRoot -Force | Out-Null\n $installRoot = $userRoot\n }\n} else {\n $installRoot = $machineRoot\n}\n\ntry {\n if (-not (Test-Path -LiteralPath $zipPath)) {\n Write-Host \"Installer not found: $zipPath\"\n Exit 1\n }\n\n New-Item -ItemType Directory -Path $installRoot -Force | Out-Null\n New-Item -ItemType Directory -Path $extractDir -Force | Out-Null\n Expand-Archive -LiteralPath $zipPath -DestinationPath $extractDir -Force\n\n # Matches winget manifest NestedInstallerFiles for x64\n $mainExe = Join-Path $extractDir \"codex-x86_64-pc-windows-msvc.exe\"\n if (-not (Test-Path -LiteralPath $mainExe)) {\n Write-Host \"Expected binary codex-x86_64-pc-windows-msvc.exe not found in archive\"\n Exit 1\n }\n\n $destExe = Join-Path $installRoot \"codex.exe\"\n Copy-Item -LiteralPath $mainExe -Destination $destExe -Force\n\n foreach ($extra in @(\n \"codex-command-runner.exe\",\n \"codex-windows-sandbox-setup.exe\"\n )) {\n $src = Join-Path $extractDir $extra\n if (Test-Path -LiteralPath $src) {\n Copy-Item -LiteralPath $src -Destination (Join-Path $installRoot $extra) -Force\n }\n }\n\n Exit 0\n} catch {\n Write-Host \"Error: $_\"\n Exit 1\n} finally {\n Remove-Item -LiteralPath $extractDir -Recurse -Force -ErrorAction SilentlyContinue\n}\n"
}
}
File diff suppressed because one or more lines are too long
@@ -9,7 +9,6 @@ import Backblaze from "./Backblaze";
import BetterDisplay from "./BetterDisplay";
import Cavalry from "./Cavalry";
import Charles from "./Charles";
import CodexCli from "./CodexCli";
import ConnectFonts from "./ConnectFonts";
import CrashPlan from "./CrashPlan";
import DruvaInSync from "./DruvaInSync";
@@ -321,7 +320,6 @@ export const SOFTWARE_NAME_TO_ICON_MAP = {
"clockify desktop": ClockifyDesktop,
cloudflare: Cloudflare,
code: VisualStudioCode,
"codex cli": CodexCli,
"company portal": IntuneCompanyPortal,
"connect fonts": ConnectFonts,
crashplan: CrashPlan,
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB