desktop: fixes for initial publish

This commit is contained in:
Jeffrey Morgan
2023-06-27 14:33:49 -04:00
parent 1879267ac9
commit 3b4f45f6bf
7 changed files with 237 additions and 6 deletions

View File

@@ -43,9 +43,9 @@ if (app.isPackaged) {
console.log(resources)
// Start the executable
const exec = path.join(resources, 'serve', '--port', '7734')
const exec = path.join(resources, 'ollama', 'ollama')
console.log(`Starting ${exec}`)
const proc = spawn(exec)
const proc = spawn(exec, ['serve', '--port', '7734'])
proc.stdout.on('data', data => {
console.log(`server: ${data}`)
})