Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -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));
Expand Down
10 changes: 6 additions & 4 deletions src/renderer/rosiEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Loading