kingkont 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.js +1 -2
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -415,8 +415,7 @@ ipcMain.handle('updates:check', async () => {
|
|
|
415
415
|
//
|
|
416
416
|
// Streamим stdout/stderr в renderer через 'updates:install-output' events.
|
|
417
417
|
// На EACCES (нет прав на global install) renderer покажет команду для
|
|
418
|
-
// ручного запуска с sudo.
|
|
419
|
-
const { spawn } = require('child_process');
|
|
418
|
+
// ручного запуска с sudo. spawn уже импортирован в начале файла.
|
|
420
419
|
ipcMain.handle('updates:install', async (e, target = 'latest') => {
|
|
421
420
|
return new Promise((resolve, reject) => {
|
|
422
421
|
const shell = process.env.SHELL || '/bin/bash';
|