|
@@ -7,8 +7,13 @@ require('@electron/remote/main').initialize()
|
|
|
|
|
|
let tray: Tray | null = null
|
|
|
const createSystemtray = () => {
|
|
|
- const brightModeIconPath = path.join(__dirname, '..', '..', 'src', 'ollama_icon_dark_16x16.png')
|
|
|
- const darkModeIconPath = path.join(__dirname, '..', '..', 'src', 'ollama_icon_bright_16x16.png')
|
|
|
+ let brightModeIconPath = path.join(__dirname, '..', '..', 'assets', 'ollama_icon_dark_16x16.png')
|
|
|
+ let darkModeIconPath = path.join(__dirname, '..', '..', 'assets', 'ollama_icon_bright_16x16.png')
|
|
|
+
|
|
|
+ if (app.isPackaged) {
|
|
|
+ brightModeIconPath = path.join(process.resourcesPath, 'ollama_icon_dark_16x16@2x.png')
|
|
|
+ darkModeIconPath = path.join(process.resourcesPath, 'ollama_icon_bright_16x16@2x.png')
|
|
|
+ }
|
|
|
|
|
|
tray = new Tray(brightModeIconPath)
|
|
|
|