Rename Electron exe to Atom

This commit is contained in:
Kevin Sawicki 2015-05-20 12:36:30 -07:00 committed by Thomas Johansen
parent 49e7c6fd86
commit 3bfef54f44
2 changed files with 3 additions and 0 deletions

View File

@ -263,5 +263,6 @@ module.exports = (grunt) ->
grunt.registerTask('ci', ciTasks) grunt.registerTask('ci', ciTasks)
defaultTasks = ['download-electron', 'download-electron-chromedriver', 'build', 'set-version', 'generate-asar'] defaultTasks = ['download-electron', 'download-electron-chromedriver', 'build', 'set-version', 'generate-asar']
# defaultTasks.push 'install' unless process.platform is 'linux'
console.log buildDir console.log buildDir
grunt.registerTask('default', defaultTasks) grunt.registerTask('default', defaultTasks)

View File

@ -16,9 +16,11 @@ module.exports = (grunt) ->
if process.platform is 'darwin' if process.platform is 'darwin'
cp 'electron/Electron.app', shellAppDir, filter: /default_app/ cp 'electron/Electron.app', shellAppDir, filter: /default_app/
fs.renameSync path.join(shellAppDir, 'Contents', 'MacOS', 'Electron'), path.join(shellAppDir, 'Contents', 'MacOS', 'Atom')
else else
cp 'electron', shellAppDir, filter: /default_app/ cp 'electron', shellAppDir, filter: /default_app/
mkdir appDir mkdir appDir
if process.platform isnt 'win32' if process.platform isnt 'win32'