Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Note what I noticed

Manav Rathic2f5c3968c9b
diff --git a/desktop/src/main.ts b/desktop/src/main.ts
index 49b3162061..5a3e3dac44 100644
--- a/desktop/src/main.ts
+++ b/desktop/src/main.ts
@@ -375,7 +375,7 @@ const main = () => {
// Continue on with the rest of the startup sequence.
Menu.setApplicationMenu(await createApplicationMenu(mainWindow));
setupTrayItem(mainWindow);
- if (!isDev) setupAutoUpdater(mainWindow);
+ setupAutoUpdater(mainWindow);
try {
await deleteLegacyDiskCacheDirIfExists();
diff --git a/desktop/src/main/menu.ts b/desktop/src/main/menu.ts
index e521fdd5ca..9d02ae0086 100644
--- a/desktop/src/main/menu.ts
+++ b/desktop/src/main/menu.ts
@@ -131,11 +131,11 @@ export const createApplicationMenu = async (mainWindow: BrowserWindow) => {
submenu: [
{
role: "startSpeaking",
- label: "start speaking",
+ label: "Start Speaking",
},
{
role: "stopSpeaking",
- label: "stop speaking",
+ label: "Stop Speaking",
},
],
},
diff --git a/desktop/src/main/services/app-update.ts b/desktop/src/main/services/app-update.ts
index 8d66cb8c3b..5788b9b27a 100644
--- a/desktop/src/main/services/app-update.ts
+++ b/desktop/src/main/services/app-update.ts
@@ -6,11 +6,20 @@ import { allowWindowClose } from "../../main";
import { AppUpdate } from "../../types/ipc";
import log from "../log";
import { userPreferences } from "../stores/user-preferences";
+import { isDev } from "../utils/electron";
export const setupAutoUpdater = (mainWindow: BrowserWindow) => {
autoUpdater.logger = electronLog;
autoUpdater.autoDownload = false;
+ // Skip checking for updates automatically in dev builds. Installing an
+ // update would fail anyway since (at least on macOS), the auto update
+ // process requires signed builds.
+ //
+ // Even though this is skipped on app start, we can still use the "Check for
+ // updates..." menu option to trigger the update if we wish in dev builds.
+ if (isDev) return;
+
const oneDay = 1 * 24 * 60 * 60 * 1000;
setInterval(() => void checkForUpdatesAndNotify(mainWindow), oneDay);
void checkForUpdatesAndNotify(mainWindow);