Skip to content

Commit 5bea93f

Browse files
committed
Replace all BetterCodex app icon resources
1 parent 44ca670 commit 5bea93f

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

STATUS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Current marketplace architecture update:
111111
- `Focus Contrast` was removed from the local sample catalog and pushed out of the community registry in `companion-inc/bettercodex-plugins` commit `93de654`, leaving zero desktop plugin packages in the hosted marketplace source.
112112
- `/Applications/BetterCodex.app` was refreshed with `npm run desktop -- install --launch=false`; bundle id remains `com.openai.codex.bettercodex`.
113113
- Current installed-app verification after the icon refresh: `/Applications/BetterCodex.app` has loader `yes`, repair agent `no`, ASAR integrity `yes`, codesign `yes`, and `CFBundleIconFile` is `bettercodex.icns`.
114+
- BetterCodex icon install now overwrites the sibling app's legacy icon resources as well as `bettercodex.icns`: `icon.icns`, `electron.icns`, `app.icns`, `icon.png`, `icon-codex-dark-color.png`, `icon-codex-light.png`, and `default_app/icon.png` all point to the gradient BetterCodex asset in `/Applications/BetterCodex.app`; Launch Services was re-registered, Quick Look cache reset, Dock restarted, and the app relaunched.
114115
- Official `/Applications/Codex.app` stayed clean after the BetterCodex icon/install refresh: loader `no`, repair agent `no`, ASAR integrity `yes`, and codesign `yes`.
115116
- Live `https://bettercodex-web.companion-inc.workers.dev/api/addons` returned schema version `1`, zero add-ons, and `Focus Contrast` absent after the registry cleanup.
116117
- Disposable CDP smoke against `/tmp/Codex-BetterCodex-MarketplaceSmoke.app` verified top-level tabs `Plugins`/`Themes`, no `Skills`/`Store` text inside BetterCodex, Marketplace under both active surfaces, `Example Theme` install from Themes Marketplace, and local file write to `/tmp/bettercodex-marketplace-smoke-home/themes/example.theme.css`.

apps/desktop/src/bundler.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,19 @@ function installBetterCodexIcon(destination) {
153153
childProcess.execFileSync("/usr/bin/iconutil", ["-c", "icns", iconset, "-o", iconPath], {
154154
stdio: "inherit",
155155
});
156+
for (const filename of ["icon.icns", "electron.icns", "app.icns"]) {
157+
fs.copyFileSync(iconPath, path.join(resourcesDir, filename));
158+
}
159+
for (const filename of ["icon.png", "icon-codex-dark-color.png", "icon-codex-light.png"]) {
160+
const target = path.join(resourcesDir, filename);
161+
if (fs.existsSync(target)) {
162+
fs.copyFileSync(source, target);
163+
}
164+
}
165+
const defaultAppIcon = path.join(resourcesDir, "default_app", "icon.png");
166+
if (fs.existsSync(defaultAppIcon)) {
167+
fs.copyFileSync(source, defaultAppIcon);
168+
}
156169
return fs.existsSync(iconPath);
157170
} catch (error) {
158171
console.warn(`BetterCodex icon generation skipped: ${error.message}`);

0 commit comments

Comments
 (0)