Added update check if using MSS or MAS builds. need help implementing

This commit is contained in:
child_duckling 2022-02-14 22:08:24 -08:00
parent 3a7b5d8655
commit 237d20ff6d
2 changed files with 20 additions and 2 deletions

View file

@ -672,6 +672,15 @@ export class BrowserWindow {
await win_autoUpdater.checkForUpdatesAndNotify()
await linux_autoUpdater.checkForUpdatesAndNotify()
});
ipcMain.on('disable-update', (event) => {
// Check if using app store builds so people don't get pissy wen button go bonk
if (app.isPackaged && !process.mas || !process.windowsStore) {
event.returnValue = false
} else {
event.returnValue = true
}
})
ipcMain.on('share-menu', async (_event, url) => {
if (process.platform != 'darwin') return;