/
githubmirror
/
atom
Обзор
Документация
Войти
/
githubmirror
/
atom
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
script/lib/kill-running-atom-instances.js
12 строк
400 B
Rafael Oleza
Use the correct executable name on the code signing tool
16 июл 2019, 19:32
16 июл 2019, 19:32
27e9ab8
Код
Авторство
О чём код?
const childProcess = require('child_process'); 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.executableName}`); } else { childProcess.execSync(`pkill -9 ${CONFIG.appMetadata.productName} || true`); } };