mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-12-01 02:27:18 +01:00
15 lines
383 B
JavaScript
15 lines
383 B
JavaScript
|
import { extraResolve } from '@electron/helpers/index.js'
|
||
|
|
||
|
export const getAdbPath = () => {
|
||
|
switch (process.platform) {
|
||
|
case 'win32':
|
||
|
return extraResolve('win/platform-tools/adb.exe')
|
||
|
case 'darwin':
|
||
|
return extraResolve('mac/platform-tools/adb')
|
||
|
case 'linux':
|
||
|
return extraResolve('linux/platform-tools/adb')
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export const adbPath = getAdbPath()
|