feat: supervise local service and expose persistent health dashboard
This commit is contained in:
1 parent
e2bd8c390f
commit
9a23197ecf
27 files changed
+512
-21
No files matched your search
+2
-1
@@ -10,7 +10,8 @@ const duplicate = () => Object.assign(new Error('该 BPM 账号已开启自动
|
||||
const digest = value => crypto.createHash('sha256').update(value).digest('hex');
|
||||
|
||||
function powershell(script, input) {
|
||||
return execFileSync('powershell.exe', ['-NoLogo', '-NoProfile', '-NonInteractive', '-Command', script], {
|
||||
const utf8='[Console]::InputEncoding=New-Object System.Text.UTF8Encoding; [Console]::OutputEncoding=New-Object System.Text.UTF8Encoding; ';
|
||||
return execFileSync('powershell.exe', ['-NoLogo', '-NoProfile', '-NonInteractive', '-Command', utf8+script], {
|
||||
input, encoding: 'utf8', windowsHide: true, timeout: 15000, stdio: ['pipe', 'pipe', 'pipe']
|
||||
}).trim();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user