Added update check if using MSS or MAS builds. need help implementing
This commit is contained in:
parent
3a7b5d8655
commit
237d20ff6d
2 changed files with 20 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue