Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit c76dc57

Browse files
committed
use simpler mac os icon
1 parent e3a4e7c commit c76dc57

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

app.icns

132 KB
Binary file not shown.

auto-updater.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function createUpdaterWindow() {
207207
alwaysOnTop: true,
208208
skipTaskbar: false,
209209
backgroundColor: '#1f2025',
210-
icon: path.join(__dirname, 'logo.png'),
210+
icon: path.join(__dirname, process.platform === 'darwin' ? 'app.icns' : 'logo.png'),
211211
webPreferences: {
212212
nodeIntegration: false,
213213
contextIsolation: true,

main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ function createWindow() {
2020
// Allow platform override via environment variable for previewing different platforms
2121
const platform = process.env.PLATFORM_OVERRIDE || process.platform;
2222
const isMac = platform === 'darwin';
23+
const iconPath = path.join(__dirname, isMac ? 'app.icns' : 'logo.png');
2324

2425
// Configure window based on platform
2526
const windowOptions = {
2627
width: 1300,
2728
height: 800,
2829
autoHideMenuBar: true,
29-
icon: path.join(__dirname, 'logo.png'),
30+
icon: iconPath,
3031
backgroundColor: '#1f2025',
3132
fullscreenable: true,
3233
webPreferences: {
@@ -529,13 +530,14 @@ function createControlPanelWindow() {
529530
return;
530531
}
531532

533+
const isMac = (process.env.PLATFORM_OVERRIDE || process.platform) === 'darwin';
532534
controlPanelWindow = new BrowserWindow({
533535
width: 500,
534536
height: 400,
535537
minWidth: 400,
536538
minHeight: 300,
537539
autoHideMenuBar: true,
538-
icon: path.join(__dirname, 'logo.png'),
540+
icon: path.join(__dirname, isMac ? 'app.icns' : 'logo.png'),
539541
backgroundColor: '#1f2025',
540542
webPreferences: {
541543
nodeIntegration: false,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
],
5757
"mac": {
5858
"category": "public.app-category.entertainment",
59-
"icon": "logo.png",
59+
"icon": "app.icns",
6060
"target": [
6161
"dmg",
6262
"zip"

0 commit comments

Comments
 (0)