Ensure beta is detected from path

This commit is contained in:
Damien Guard
2016-07-29 15:51:45 -07:00
parent 82efce08ed
commit f3caa67109

View File

@@ -3,7 +3,8 @@ Path = require 'path'
exeName = Path.basename(process.execPath)
appPath = "\"#{process.execPath}\""
appName = exeName.replace('atom', 'Atom').replace('beta', 'Beta').replace('.exe', '')
isBeta = appPath.includes(' Beta')
appName = exeName.replace('atom', (if isBeta then 'Atom Beta' else 'Atom' )).replace('.exe', '')
class ShellOption
constructor: (key, parts) ->