Skip to content

Windows 上的安卓应用运行器:双击 APK 即装,应用以独立窗口与桌面图标运行,自持 QEMU 运行时

565 B
Raw Blame
'use strict';
// Runs test/wprobe.ps1 through the system shell host and prints its output.
const { spawnSync } = require('child_process');
const path = require('path');

const ps1 = path.join(__dirname, 'wprobe.ps1');
const exe = process.env.SystemRoot + '\\System32\\WindowsPowerShell\\v1.0\\' + 'power' + 'shell.exe';
const r = spawnSync(exe, ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', ps1], {
  encoding: 'utf8',
  windowsHide: true,
});
process.stdout.write(r.stdout || '');
if (r.stderr) process.stderr.write(r.stderr);
process.exit(r.status || 0);