Commit a6174e9
fix(icon): 🐛 fix app icon not displaying on macOS when running via npx (#8)
- Add `public/icons/` to npm package files to include icons in published package
- Add `getIconPath()` function to intelligently locate icon files across different run modes (dev/npx/packaged)
- Use `nativeImage` API for better icon loading with proper error handling
- Use PNG format for non-packaged mode as nativeImage has poor .icns/.ico support
- Add dedicated macOS PNG icons with transparent margins for Dock magnification effect
- Set Dock icon explicitly on macOS using `app.dock.setIcon()`
- Add window title 'MarkPDFdown'
- Add icons to extraResources for electron-builder packaging
Co-authored-by: Claude <noreply@anthropic.com>1 parent f3b785d commit a6174e9
11 files changed
Lines changed: 93 additions & 9 deletions
File tree
- public/icons/mac/png
- src/main
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| |||
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
0 commit comments