mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
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:
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user