import util from 'node:util' import child_process from 'node:child_process' import adbPath from '@resources/extra/core/adb.exe?path' import scrcpyPath from '@resources/extra/core/scrcpy.exe?path' const exec = util.promisify(child_process.exec) const shell = command => exec(`${scrcpyPath} ${command}`, { env: { ...process.env, ADB: adbPath } }) export default () => ({ shell, })