Added basic control panel
This commit is contained in:
3
dist/Shutdown.js
vendored
3
dist/Shutdown.js
vendored
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.shutdown = shutdown;
|
||||
exports.shutdown = void 0;
|
||||
var child_process_1 = require("child_process");
|
||||
function shutdown() {
|
||||
if (process.platform === 'win32') {
|
||||
@@ -11,6 +11,7 @@ function shutdown() {
|
||||
message: 'Platform not supported',
|
||||
});
|
||||
}
|
||||
exports.shutdown = shutdown;
|
||||
function shutdownWindows() {
|
||||
return new Promise(function (resolve, reject) {
|
||||
(0, child_process_1.exec)('shutdown /s /t 5', function (error, stdout, stderr) {
|
||||
|
||||
Reference in New Issue
Block a user