diff --git a/src/main/main.ts b/src/main/main.ts index ac6c45f..fa10317 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -417,7 +417,9 @@ app.on('before-quit', () => { } }); -setupAutoUpdater(getMainWindow, loadSettings); +if (!process.windowsStore) { + setupAutoUpdater(getMainWindow, loadSettings); +} ipcMain.on('log-error', (_, message) => { if (typeof message === 'string') { @@ -443,10 +445,12 @@ ipcMain.on('settings-flush-complete', (event) => { ipcMain.handle('get-app-version', () => app.getVersion()); ipcMain.handle('is-packaged', () => isPackaged); -ipcMain.handle('check-for-updates', () => checkForUpdates(isPackaged, loadSettings)); -ipcMain.handle('download-update', () => downloadUpdate()); -ipcMain.on('cancel-update-download', () => cancelUpdateDownload(getMainWindow)); -ipcMain.on('install-update', () => installUpdate()); +if (!process.windowsStore) { + ipcMain.handle('check-for-updates', () => checkForUpdates(isPackaged, loadSettings)); + ipcMain.handle('download-update', () => downloadUpdate()); + ipcMain.on('cancel-update-download', () => cancelUpdateDownload(getMainWindow)); + ipcMain.on('install-update', () => installUpdate()); +} ipcMain.handle('check-deno-installed', () => checkDenoInstalled()); ipcMain.handle('install-deno', () => installDeno(mainWindow)); diff --git a/src/renderer/rosiEngine.js b/src/renderer/rosiEngine.js index 454520e..73acdd2 100644 --- a/src/renderer/rosiEngine.js +++ b/src/renderer/rosiEngine.js @@ -1354,10 +1354,12 @@ document.addEventListener('DOMContentLoaded', async () => { logError('Could not get app version', e); } - try { - setupAutoUpdater(); - } catch (e) { - logError('Failed to setup auto-updater', e); + if (window.api.getChannel() !== 'msstore') { + try { + setupAutoUpdater(); + } catch (e) { + logError('Failed to setup auto-updater', e); + } } let settingsSaveErrorShownAt = 0;