Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit 58bb5e0

Browse files
author
icymind
committed
disable autoupdate for windows
1 parent 23afc6e commit 58bb5e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { autoUpdater } from 'electron-updater'
44
// import logger from '@/lib/logger'
55

66
const { app, BrowserWindow, Menu } = require('electron')
7+
const os = require('os')
78

89
let win
910
const winURL = process.env.NODE_ENV === 'development'
@@ -160,5 +161,5 @@ autoUpdater.on('update-not-available', () => {
160161
console.info('no update available')
161162
})
162163
app.on('ready', () => {
163-
autoUpdater.checkForUpdates()
164+
if (os.platform() === 'darwin') autoUpdater.checkForUpdates()
164165
})

0 commit comments

Comments
 (0)