From 13f3669ebf44ff69684b3cdaf7c34fd96d6dac0f Mon Sep 17 00:00:00 2001 From: Michael Grinich Date: Wed, 24 Jun 2015 13:41:15 -0700 Subject: [PATCH] add win32 exe renaming --- build/tasks/build-task.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/tasks/build-task.coffee b/build/tasks/build-task.coffee index 84f5b67d7..b38f26911 100644 --- a/build/tasks/build-task.coffee +++ b/build/tasks/build-task.coffee @@ -25,6 +25,10 @@ module.exports = (grunt) -> cp(path.join(shellAppDir, 'Contents', 'MacOS', 'Electron'), path.join(shellAppDir, 'Contents', 'MacOS', 'Nylas')) rm path.join(shellAppDir, 'Contents', 'MacOS', 'Electron') + else if process.platform is 'win32' + cp 'electron', shellAppDir, filter: /default_app/ + cp path.join(shellAppDir, 'electron.exe'), path.join(shellAppDir, 'nylas.exe') + rm path.join(shellAppDir, 'electron.exe') else cp 'electron', shellAppDir, filter: /default_app/ cp path.join(shellAppDir, 'electron'), path.join(shellAppDir, 'nylas')