From b85ebbad2ac2279e3418609cec048d12696508e6 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Sat, 5 Jul 2014 11:06:07 -0700 Subject: [PATCH] Separate /F argument to taskkill --- build/Gruntfile.coffee | 2 +- build/tasks/codesign-task.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/Gruntfile.coffee b/build/Gruntfile.coffee index 18915985e..bae4a53c4 100644 --- a/build/Gruntfile.coffee +++ b/build/Gruntfile.coffee @@ -47,7 +47,7 @@ module.exports = (grunt) -> contentsDir = shellAppDir appDir = path.join(shellAppDir, 'resources', 'app') installDir ?= path.join(process.env.ProgramFiles, appName) - killCommand = 'taskkill /FIM atom.exe' + killCommand = 'taskkill /F /IM atom.exe' else if process.platform is 'darwin' contentsDir = path.join(shellAppDir, 'Contents') appDir = path.join(contentsDir, 'Resources', 'app') diff --git a/build/tasks/codesign-task.coffee b/build/tasks/codesign-task.coffee index ab7ca23a7..7f579cbca 100644 --- a/build/tasks/codesign-task.coffee +++ b/build/tasks/codesign-task.coffee @@ -28,7 +28,7 @@ module.exports = (grunt) -> args = ['-f', '-v', '-s', 'Developer ID Application: GitHub', grunt.config.get('atom.shellAppDir')] spawn {cmd, args}, (error) -> callback(error) when 'win32' - spawn {cmd: 'taskkill', args: ['/FIM', 'atom.exe']}, -> + spawn {cmd: 'taskkill', args: ['/F', '/IM', 'atom.exe']}, -> cmd = process.env.JANKY_SIGNTOOL ? 'signtool' args = [path.join(grunt.config.get('atom.shellAppDir'), 'atom.exe')] spawn {cmd, args}, (error) -> callback(error)