Use app.getVersion instead of the version file

This commit is contained in:
probablycorey
2013-06-19 09:43:34 -07:00
parent d8ba422178
commit 264ddbe183

View File

@@ -46,8 +46,7 @@ setupAutoUpdater = ->
autoUpdater.setAutomaticallyDownloadsUpdates true
parseCommandLine = ->
version = fs.readFileSync(path.join(__dirname, '..', '..', 'version'), 'utf8')
version = app.getVersion()
options = optimist(process.argv[1..])
options.usage """
Atom #{version}