|
|
há 3 meses atrás | |
|---|---|---|
| .. | ||
| beta | b4147c8d08 refactor(desktop): consolidate desktop-electron into desktop package (#25822) | há 3 meses atrás |
| dev | b4147c8d08 refactor(desktop): consolidate desktop-electron into desktop package (#25822) | há 3 meses atrás |
| prod | b4147c8d08 refactor(desktop): consolidate desktop-electron into desktop package (#25822) | há 3 meses atrás |
| README.md | b4147c8d08 refactor(desktop): consolidate desktop-electron into desktop package (#25822) | há 3 meses atrás |
Here's the process I've been using to create icons:
app-icon.png in packages/desktopcd to packages/desktopbun tauri icon -o src-tauri/icons/{environment}icon.icns file and place it in the appropriate icons folderThe Image2Icon step is necessary as the icon.icns generated by app-icon.png does not apply the shadow/padding expected by macOS,
so app icons appear larger than expected.
For unpackaged Electron on macOS, app.dock.setIcon() should use a PNG. Keep dock.png in each channel folder synced with the
extracted icon_128x128@2x.png from that channel's icon.icns so the dev Dock icon matches the packaged app inset.