revert changes for debug

This commit is contained in:
Zamitto 2024-05-31 15:35:30 -03:00
parent 2038bd1fbe
commit 227eb6ff2d
3 changed files with 8 additions and 7 deletions

View file

@ -18,9 +18,13 @@ const mockValuesForDebug = () => {
};
const checkForUpdates = async (_event: Electron.IpcMainInvokeEvent) => {
autoUpdater.once("update-available", (info: UpdateInfo) => {
sendEvent({ type: "update-available", info });
});
autoUpdater
.once("update-available", (info: UpdateInfo) => {
sendEvent({ type: "update-available", info });
})
.once("update-downloaded", () => {
sendEvent({ type: "update-downloaded" });
});
if (app.isPackaged) {
autoUpdater.checkForUpdates();