Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
582036ba
Commit
582036ba
authored
Jun 27, 2023
by
Jeffrey Morgan
Browse files
desktop: add auto update url
parent
a3b87c83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
desktop/src/index.ts
desktop/src/index.ts
+2
-1
No files found.
desktop/src/index.ts
View file @
582036ba
import
{
app
,
BrowserWindow
,
ipcMain
,
dialog
}
from
'
electron
'
import
{
app
,
BrowserWindow
,
autoUpdater
}
from
'
electron
'
import
{
spawn
}
from
'
child_process
'
import
{
spawn
}
from
'
child_process
'
import
*
as
path
from
'
path
'
import
*
as
path
from
'
path
'
...
@@ -82,3 +82,4 @@ app.on('activate', () => {
...
@@ -82,3 +82,4 @@ app.on('activate', () => {
// In this file you can include the rest of your app's specific main process
// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and import them here.
// code. You can also put them in separate files and import them here.
autoUpdater
.
setFeedURL
({
url
:
`https://updates.ollama.ai/update/
${
process
.
platform
}
/
${
app
.
getVersion
()}
`
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment