fix(electron): add macOS app icon via icon.icns

Add public/icon.icns generated from icon.png. Update forge.config.js DMG maker and electron/main.js dev dock to use icon.icns. Fixes missing 5chan icon (default Electron icon shown).
This commit is contained in:
plebeius
2026-02-16 16:16:05 +08:00
parent ee7c254e7b
commit 6befc6bacd
3 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -320,9 +320,9 @@ const createMainWindow = () => {
app.whenReady().then(() => {
// Set app name and dock icon for development mode on macOS
if (process.platform === 'darwin' && isDev) {
app.setName('seedit');
app.setName('5chan');
if (app.dock) {
const iconPath = path.join(dirname, '..', isDev ? 'public' : 'build', 'icon.png');
const iconPath = path.join(dirname, '..', 'public', 'icon.icns');
app.dock.setIcon(iconPath);
}
}