Skip to content

feat: rebrand VSCodium with OCCode icon on all platforms#9

Merged
damoahdominic merged 2 commits intodamoahdominic:mainfrom
ninjaa:feat/custom-app-icon
Feb 17, 2026
Merged

feat: rebrand VSCodium with OCCode icon on all platforms#9
damoahdominic merged 2 commits intodamoahdominic:mainfrom
ninjaa:feat/custom-app-icon

Conversation

@ninjaa
Copy link
Copy Markdown

@ninjaa ninjaa commented Feb 17, 2026

Summary

Replaces VSCodium's default icons and product names with OCcode branding (lobster claw icon) on all platforms after download/extraction.

Changes

  • apps/wrapper/src/rebrand.js — New module that detects platform and replaces VSCodium icons:
    • Windows: Patches codium.exe via @electron/rcedit + replaces code.ico
    • macOS: Replaces VSCodium.icns with pre-built .icns, updates Info.plist display name
    • Linux: Replaces pixmaps/vscodium.png and resources/linux/*.png
    • All platforms: Patches product.json (nameShort, nameLong, applicationName → "OCcode")
  • apps/wrapper/src/main.js — Calls rebrandVSCodium() after download, before extension install
  • apps/wrapper/assets/icon.icns — Pre-generated macOS icon from icon.png
  • apps/wrapper/package.json — Adds @electron/rcedit as optional dependency (Windows only)

Design decisions

  • All icon patching is non-fatal (try/catch with console warnings)
  • rcedit is conditionally required — skipped gracefully if unavailable
  • macOS .icns is pre-built; falls back to runtime sips generation if missing

Debian added 2 commits February 17, 2026 21:51
- Add apps/wrapper/src/rebrand.js: replaces VSCodium icons with OCcode
  lobster claw icon on Windows, macOS, and Linux
- Patch product.json nameShort/nameLong/applicationName to 'OCcode'
- Windows: use @electron/rcedit to patch codium.exe icon + replace code.ico
- macOS: replace VSCodium.icns (pre-built .icns included), update Info.plist
- Linux: replace pixmaps/vscodium.png and resources linux PNGs
- Add pre-generated icon.icns for macOS (from png2icns)
- Add @electron/rcedit as optionalDependency (Windows only)
- All icon patching is non-fatal (try/catch with warnings)
VSCodium files may be directly in vscodeDir rather than a subdirectory.
Fall back to vscodeDir when resources/app exists (flat extraction).
@ninjaa
Copy link
Copy Markdown
Author

ninjaa commented Feb 17, 2026

Linux Smoke Test Results ✅

Rebrand log (confirms icon replacement + product.json patching):

[rebrand] Rebranding VSCodium for linux…
[rebrand] Copied icon.png → /home/debian/.occode/vscode/pixmaps/vscodium.png
[rebrand] Copied icon.png → /home/debian/.occode/vscode/resources/app/resources/linux/code.png
[rebrand] Patched /home/debian/.occode/vscode/resources/app/product.json

Fix applied: The original code looked for VSCodium-linux-x64/ subdirectory, but VSCodium was extracted flat into ~/.occode/vscode/. Added fallback: if resources/app exists directly in vscodeDir, use it.

Screenshot: OCCode launches with the lobster claw icon in the title bar, title shows "OCcode" instead of "VSCodium", and the OpenClaw Home page loads correctly.

Tested on Linux (Debian, headless Xvfb). Windows + macOS need separate verification.

@damoahdominic damoahdominic merged commit 3c3b011 into damoahdominic:main Feb 17, 2026
4 checks passed
damoahdominic added a commit that referenced this pull request Mar 16, 2026
feat: rebrand VSCodium with OCCode icon on all platforms
damoahdominic added a commit that referenced this pull request Mar 16, 2026
feat: rebrand VSCodium with OCCode icon on all platforms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants