Skip to content

Commit 9303fa7

Browse files
committed
Add app icon and integrate into build pipeline
- SVG logo design: dark background with chart bars, trend line, dollar sign, and "CC" branding representing Claude Code cost monitoring - Generated .icns from SVG for macOS app bundle icon - Updated build-app.sh to copy AppIcon.icns and set CFBundleIconFile - Added icon.png to demos/ for README display - Updated README with centered logo in header
1 parent 71a9224 commit 9303fa7

5 files changed

Lines changed: 124 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# CCMonitor
1+
<p align="center">
2+
<img src="demos/icon.png" width="128" alt="CCMonitor">
3+
</p>
4+
5+
<h1 align="center">CCMonitor</h1>
26

3-
A native macOS menu bar app for real-time monitoring of [Claude Code](https://docs.anthropic.com/en/docs/claude-code) token usage and costs.
7+
<p align="center">A native macOS menu bar app for real-time monitoring of <a href="https://docs.anthropic.com/en/docs/claude-code">Claude Code</a> token usage and costs.</p>
48

59
<p align="center">
610
<img src="https://img.shields.io/badge/platform-macOS%2014%2B-blue" alt="Platform">
460 KB
Binary file not shown.
Lines changed: 109 additions & 0 deletions
Loading

demos/icon.png

21.3 KB
Loading

scripts/build-app.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ if [ -n "$RESOURCE_BUNDLE" ]; then
3838
echo " ✅ Copied resource bundle"
3939
fi
4040

41+
# 复制应用图标
42+
ICON_FILE="Sources/CCMonitor/Resources/AppIcon.icns"
43+
if [ -f "$ICON_FILE" ]; then
44+
cp "$ICON_FILE" "${APP_DIR}/Contents/Resources/AppIcon.icns"
45+
echo " ✅ Copied app icon"
46+
fi
47+
4148
# 创建 Info.plist
4249
cat > "${APP_DIR}/Contents/Info.plist" << 'PLIST'
4350
<?xml version="1.0" encoding="UTF-8"?>
@@ -64,6 +71,8 @@ cat > "${APP_DIR}/Contents/Info.plist" << 'PLIST'
6471
<true/>
6572
<key>NSHighResolutionCapable</key>
6673
<true/>
74+
<key>CFBundleIconFile</key>
75+
<string>AppIcon</string>
6776
</dict>
6877
</plist>
6978
PLIST

0 commit comments

Comments
 (0)