Skip to content

Commit

Permalink
auto updater test
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanff committed May 7, 2024
1 parent d8e73ef commit efb8b9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,13 @@ app.whenReady().then(async () => {

createWindow();

autoUpdater.checkForUpdates();
// Check for updates every 15 minutes
setInterval(
() => {
autoUpdater.checkForUpdatesAndNotify();
},
1000 * 60 * 15
);

autoUpdater.on("update-downloaded", (e) => {
const { version } = e;
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default function App() {
}}
>
<div
className="flex h-screen overflow-hidden bg-background text-sm text-tx-primary antialiased lg:text-base"
className="flex h-screen overflow-hidden bg-neutral-500 text-sm text-tx-primary antialiased lg:text-base"
onDrop={handleDrop}
onDragOver={(e) => {
e.preventDefault();
Expand Down

0 comments on commit efb8b9f

Please sign in to comment.