removing icon and electron-builder
|
|
@ -19,7 +19,7 @@ const config: ForgeConfig = {
|
|||
appVersion: process.env.VERSION || packageJson.version,
|
||||
asar: true,
|
||||
icon: './images/icon',
|
||||
extraResource: ['../ollama', '../ggml-metal.metal'],
|
||||
extraResource: ['./images/ollama_icon_dark_16x16.png', './images/ollama_icon_bright_16x16.png', '../ollama', '../ggml-metal.metal'],
|
||||
...(process.env.SIGN
|
||||
? {
|
||||
osxSign: {
|
||||
|
|
@ -35,7 +35,7 @@ const config: ForgeConfig = {
|
|||
: {}),
|
||||
},
|
||||
rebuildConfig: {},
|
||||
makers: [new MakerSquirrel({}), new MakerZIP({}, ['darwin']), new MakerRpm({}), new MakerDeb({})],
|
||||
makers: [new MakerSquirrel({}), new MakerZIP({}, ['darwin'])],
|
||||
publishers: [
|
||||
new PublisherGithub({
|
||||
repository: {
|
||||
|
|
|
|||
BIN
app/icon.icns
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 528 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 442 B |
|
Before Width: | Height: | Size: 889 B After Width: | Height: | Size: 889 B |
|
Before Width: | Height: | Size: 407 B After Width: | Height: | Size: 407 B |
|
Before Width: | Height: | Size: 810 B After Width: | Height: | Size: 810 B |
|
|
@ -8,7 +8,6 @@
|
|||
"start": "electron-forge start",
|
||||
"package": "electron-forge package",
|
||||
"package:sign": "SIGN=1 electron-forge package",
|
||||
"dist": "electron-builder",
|
||||
"make": "electron-forge make",
|
||||
"make:sign": "SIGN=1 electron-forge make",
|
||||
"publish": "SIGN=1 electron-forge publish",
|
||||
|
|
@ -20,17 +19,6 @@
|
|||
"email": "jmorganca@gmail.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"build" : {
|
||||
"appId": "com.ollama.app",
|
||||
"mac": {
|
||||
"category": "public.app-category.productivity",
|
||||
"target": [
|
||||
"dmg",
|
||||
"zip"
|
||||
],
|
||||
"icon": "icon.icns"
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.22.5",
|
||||
"@babel/preset-react": "^7.22.5",
|
||||
|
|
|
|||
|
|
@ -7,8 +7,12 @@ 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')
|
||||
// const baseURL = path.join(__dirname, 'src')
|
||||
const resources = process.resourcesPath
|
||||
const brightModeIconPath = path.join(resources, 'ollama_icon_dark_16x16.png')
|
||||
const darkModeIconPath = path.join(resources, 'ollama_icon_bright_16x16.png')
|
||||
// const brightModeIconPath = path.join(__dirname, '..', '..', 'src', 'ollama_icon_dark_16x16.png')
|
||||
// const darkModeIconPath = path.join(__dirname, '..', '..', 'src', 'ollama_icon_bright_16x16.png')
|
||||
|
||||
tray = new Tray(brightModeIconPath)
|
||||
|
||||
|
|
|
|||