mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-15 03:07:41 +01:00
13 lines
331 B
JavaScript
13 lines
331 B
JavaScript
import util from 'node:util'
|
|
import child_process from 'node:child_process'
|
|
import { adbPath, scrcpyPath } from '@electron/configs/index.js'
|
|
|
|
const exec = util.promisify(child_process.exec)
|
|
|
|
const shell = command =>
|
|
exec(`${scrcpyPath} ${command}`, { env: { ...process.env, ADB: adbPath } })
|
|
|
|
export default () => ({
|
|
shell,
|
|
})
|