-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'
'coffee_sources': [
'atom/browser/api/lib/app.coffee',
'atom/browser/api/lib/auto-updater.coffee',
- 'atom/browser/api/lib/auto-updater/auto-updater-mac.coffee',
+ 'atom/browser/api/lib/auto-updater/auto-updater-native.coffee',
'atom/browser/api/lib/auto-updater/auto-updater-win.coffee',
'atom/browser/api/lib/auto-updater/squirrel-update-win.coffee',
'atom/browser/api/lib/browser-window.coffee',