Kill all atom.exe before signing

This commit is contained in:
Kevin Sawicki
2014-07-05 10:45:35 -07:00
parent 497ac5e5ce
commit 3ae6540c70

View File

@@ -28,7 +28,8 @@ module.exports = (grunt) ->
args = ['-f', '-v', '-s', 'Developer ID Application: GitHub', grunt.config.get('atom.shellAppDir')]
spawn {cmd, args}, (error) -> callback(error)
when 'win32'
cmd = process.env.JANKY_SIGNTOOL ? 'signtool'
signtool = process.env.JANKY_SIGNTOOL ? 'signtool'
cmd = 'taskkill /FIM atom.exe & ' + signtool
args = [path.join(grunt.config.get('atom.shellAppDir'), 'atom.exe')]
spawn {cmd, args}, (error) -> callback(error)
else