Rename electron executable on Linux and Windows

This commit is contained in:
Kevin Sawicki
2015-05-20 14:56:04 -07:00
committed by Thomas Johansen
parent a04515b897
commit 7a929d60ca

View File

@@ -22,6 +22,11 @@ module.exports = (grunt) ->
else
cp 'electron', shellAppDir, filter: /default_app/
if process.platform is 'win32'
fs.renameSync path.join(shellAppDir, 'electron.exe'), path.join(shellAppDir, 'atom.exe')
else
fs.renameSync path.join(shellAppDir, 'electron'), path.join(shellAppDir, 'atom')
mkdir appDir
if process.platform isnt 'win32'