diff --git a/src/main/index.ts b/src/main/index.ts index c22d566..bfde8c2 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -24,7 +24,7 @@ if (require('electron-squirrel-startup')) { // eslint-disable-line global-requir } declare var __static: string -const iconPath = path.join(__static, 'img', 'tray-icon.png') +const iconPath = path.join(__static, 'img', process.platform === 'win32' ? 'tray-icon.ico' : 'tray-icon.png') const host = '127.0.0.1' const logPath = log.transports.file.getFile().path const binPath = path.join(__static, 'bin') diff --git a/static/img/tray-icon.ico b/static/img/tray-icon.ico new file mode 100644 index 0000000..588a805 Binary files /dev/null and b/static/img/tray-icon.ico differ