Use the correct executable name on the code signing tool

This commit is contained in:
Rafael Oleza 2019-07-16 18:32:24 +02:00
parent 3777fdf94b
commit 27e9ab8d32
2 changed files with 2 additions and 4 deletions

View File

@ -107,7 +107,7 @@ if (!argv.generateApiDocs) {
}
if (argv.codeSign) {
const executablesToSign = [ path.join(packagedAppPath, 'Atom.exe') ]
const executablesToSign = [ path.join(packagedAppPath, CONFIG.executableName) ]
if (argv.createWindowsInstaller) {
executablesToSign.push(path.join(__dirname, 'node_modules', '@atom', 'electron-winstaller', 'vendor', 'Squirrel.exe'))
}

View File

@ -5,9 +5,7 @@ const CONFIG = require('../config.js');
module.exports = function() {
if (process.platform === 'win32') {
// Use START as a way to ignore error if Atom.exe isnt running
childProcess.execSync(
`START taskkill /F /IM ${CONFIG.appMetadata.productName}.exe`
);
childProcess.execSync(`START taskkill /F /IM ${CONFIG.executableName}`);
} else {
childProcess.execSync(`pkill -9 ${CONFIG.appMetadata.productName} || true`);
}