chore: rebrand client and add icon tooling

This commit is contained in:
Shantur Rathore
2025-11-13 22:58:57 +00:00
parent 8233aee7a8
commit a71c8ab34f
27 changed files with 432 additions and 205 deletions

View File

@@ -1,6 +1,6 @@
# Building OpenCode Client Binaries
# Building CodeNomad Binaries
This guide explains how to build distributable binaries for OpenCode Client.
This guide explains how to build distributable binaries for CodeNomad.
## Prerequisites
@@ -81,17 +81,17 @@ Binaries are generated in the `release/` directory:
```
release/
├── OpenCode Client-0.1.0-mac-universal.dmg
├── OpenCode Client-0.1.0-mac-universal.zip
├── OpenCode Client-0.1.0-win-x64.exe
├── OpenCode Client-0.1.0-linux-x64.AppImage
├── CodeNomad-0.1.0-mac-universal.dmg
├── CodeNomad-0.1.0-mac-universal.zip
├── CodeNomad-0.1.0-win-x64.exe
├── CodeNomad-0.1.0-linux-x64.AppImage
└── ...
```
## File Naming Convention
```
OpenCode Client-{version}-{os}-{arch}.{ext}
CodeNomad-{version}-{os}-{arch}.{ext}
```
- **version**: From package.json (e.g., `0.1.0`)
@@ -215,6 +215,16 @@ Edit `package.json` → `build` section to customize:
See [electron-builder docs](https://www.electron.build/) for details.
## Brand Assets
- `images/CodeNomad-Icon.png` — primary asset for in-app logo placements and the 1024×1024 master icon used to generate packaged app icons
To update the binaries:
1. Run `node scripts/generate-icons.js images/CodeNomad-Icon.png electron/resources` to round the corners and emit fresh `icon.icns`, `icon.ico`, and `icon.png` files.
2. (Optional) Pass `--radius` to tweak the corner curvature or `--name` to change the filename prefix.
3. If you prefer manual control, export `images/CodeNomad-Icon.png` with your tool of choice and place the generated files in `electron/resources/`.
## Clean Build
Remove previous builds: