updating icons
This commit is contained in:
parent
760bc3366b
commit
aa281a30e5
6 changed files with 5 additions and 6 deletions
BIN
app/assets/icon3_16x16Template.png
Normal file
BIN
app/assets/icon3_16x16Template.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 403 B |
BIN
app/assets/icon3_16x16Template@2x.png
Normal file
BIN
app/assets/icon3_16x16Template@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 741 B |
BIN
app/assets/icon_16x16Template.png
Normal file
BIN
app/assets/icon_16x16Template.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 381 B |
BIN
app/assets/icon_16x16Template@2x.png
Normal file
BIN
app/assets/icon_16x16Template@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 696 B |
|
@ -1,4 +1,4 @@
|
||||||
import type { ForgeConfig, ResolvedForgeConfig, ForgeMakeResult } from '@electron-forge/shared-types'
|
import type { ForgeConfig } from '@electron-forge/shared-types'
|
||||||
import { MakerSquirrel } from '@electron-forge/maker-squirrel'
|
import { MakerSquirrel } from '@electron-forge/maker-squirrel'
|
||||||
import { MakerZIP } from '@electron-forge/maker-zip'
|
import { MakerZIP } from '@electron-forge/maker-zip'
|
||||||
import { PublisherGithub } from '@electron-forge/publisher-github'
|
import { PublisherGithub } from '@electron-forge/publisher-github'
|
||||||
|
@ -19,8 +19,8 @@ const config: ForgeConfig = {
|
||||||
icon: './assets/icon.icns',
|
icon: './assets/icon.icns',
|
||||||
extraResource: [
|
extraResource: [
|
||||||
'../ollama',
|
'../ollama',
|
||||||
path.join(__dirname, './assets/ollama_icon_16x16Template.png'),
|
path.join(__dirname, './assets/icon3_16x16Template.png'),
|
||||||
path.join(__dirname, './assets/ollama_icon_16x16Template@2x.png'),
|
path.join(__dirname, './assets/icon3_16x16Template@2x.png'),
|
||||||
...(process.platform === 'darwin' ? ['../llama/ggml-metal.metal'] : []),
|
...(process.platform === 'darwin' ? ['../llama/ggml-metal.metal'] : []),
|
||||||
],
|
],
|
||||||
...(process.env.SIGN
|
...(process.env.SIGN
|
||||||
|
|
|
@ -66,10 +66,10 @@ function firstRunWindow() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function createSystemtray() {
|
function createSystemtray() {
|
||||||
let iconPath = path.join(__dirname, '..', '..', 'assets', 'ollama_icon_16x16Template.png')
|
let iconPath = path.join(__dirname, '..', '..', 'assets', 'icon3_16x16Template.png')
|
||||||
|
|
||||||
if (app.isPackaged) {
|
if (app.isPackaged) {
|
||||||
iconPath = path.join(process.resourcesPath, 'ollama_icon_16x16Template.png')
|
iconPath = path.join(process.resourcesPath, 'icon3_16x16Template.png')
|
||||||
}
|
}
|
||||||
|
|
||||||
tray = new Tray(iconPath)
|
tray = new Tray(iconPath)
|
||||||
|
@ -162,7 +162,6 @@ app.on('ready', () => {
|
||||||
|
|
||||||
// This is the first run or the CLI is no longer installed
|
// This is the first run or the CLI is no longer installed
|
||||||
app.setLoginItemSettings({ openAtLogin: true })
|
app.setLoginItemSettings({ openAtLogin: true })
|
||||||
|
|
||||||
firstRunWindow()
|
firstRunWindow()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue