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
7ee75e19
Commit
7ee75e19
authored
Jul 06, 2023
by
Jeffrey Morgan
Browse files
only check for updates if packaged
parent
90d4ea9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
app/src/index.ts
app/src/index.ts
+5
-3
No files found.
app/src/index.ts
View file @
7ee75e19
...
@@ -135,10 +135,12 @@ autoUpdater.setFeedURL({
...
@@ -135,10 +135,12 @@ autoUpdater.setFeedURL({
url
:
`https://ollama.ai/api/update?os=
${
process
.
platform
}
&arch=
${
process
.
arch
}
&version=
${
app
.
getVersion
()}
`
,
url
:
`https://ollama.ai/api/update?os=
${
process
.
platform
}
&arch=
${
process
.
arch
}
&version=
${
app
.
getVersion
()}
`
,
})
})
autoUpdater
.
checkForUpdates
()
if
(
app
.
isPackaged
)
{
setInterval
(()
=>
{
autoUpdater
.
checkForUpdates
()
autoUpdater
.
checkForUpdates
()
},
60000
)
setInterval
(()
=>
{
autoUpdater
.
checkForUpdates
()
},
60000
)
}
autoUpdater
.
on
(
'
error
'
,
e
=>
{
autoUpdater
.
on
(
'
error
'
,
e
=>
{
console
.
error
(
'
update check failed
'
,
e
)
console
.
error
(
'
update check failed
'
,
e
)
...
...
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