mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Use app.getVersion instead of the version file
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user