Skip to content

Commit

Permalink
save work
Browse files Browse the repository at this point in the history
  • Loading branch information
esimkowitz committed Feb 22, 2024
1 parent 6a0459a commit e0a63b9
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/electron/emain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,14 +787,18 @@ function configureAutoUpdater(enabled: boolean, startup: boolean) {
console.log("configureAutoUpdater", enabled, startup);
if (unamePlatform == "darwin") {
if (enabled) {
updateElectronApp({
updateSource: {
type: UpdateSourceType.ElectronPublicUpdateService,
repo: "esimkowitz/waveterm",
},
updateInterval: "1 hour",
logger: console,
});
try {
updateElectronApp({
updateSource: {
type: UpdateSourceType.ElectronPublicUpdateService,
repo: "esimkowitz/waveterm",
},
updateInterval: "1 hour",
logger: console,
});
} catch (e) {
console.log("error configuring auto updater", e.toString());
}
} else if (!startup) {
electron.dialog
.showMessageBox(MainWindow, {
Expand Down

0 comments on commit e0a63b9

Please sign in to comment.