linux: Don't throw error when using autoUpdater

Fix #3194.
This commit is contained in:
Cheng Zhao 2015-11-13 10:58:10 +08:00
parent 852500e5fa
commit f2439cefd0
3 changed files with 5 additions and 7 deletions

View file

@ -1,7 +1,5 @@
switch process.platform
when 'win32'
module.exports = require './auto-updater/auto-updater-win'
when 'darwin'
module.exports = require './auto-updater/auto-updater-mac'
module.exports =
if process.platform is 'win32'
require './auto-updater/auto-updater-win'
else
throw new Error('auto-updater is not implemented on this platform')
require './auto-updater/auto-updater-native'