mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-14 18:57:40 +01:00
perf: ♻️ 目录结构及描述调整
This commit is contained in:
parent
b18256b6fc
commit
f9a32d6f28
@ -3,11 +3,11 @@ import { extraResolve } from '@electron/helpers/index.js'
|
||||
export const getAdbPath = () => {
|
||||
switch (process.platform) {
|
||||
case 'win32':
|
||||
return extraResolve('win/platform-tools/adb.exe')
|
||||
return extraResolve('win/android-platform-tools/adb.exe')
|
||||
case 'darwin':
|
||||
return extraResolve('mac/platform-tools/adb')
|
||||
return extraResolve('mac/android-platform-tools/adb')
|
||||
case 'linux':
|
||||
return extraResolve('linux/platform-tools/adb')
|
||||
return extraResolve('linux/android-platform-tools/adb')
|
||||
}
|
||||
}
|
||||
|
@ -2,9 +2,9 @@ import { resolve } from 'node:path'
|
||||
|
||||
import { buildResolve, extraResolve } from '@electron/helpers/index.js'
|
||||
|
||||
export { adbPath } from './adb.js'
|
||||
export { adbPath } from './android-platform-tools/index.js'
|
||||
|
||||
export { scrcpyPath } from './scrcpy.js'
|
||||
export { scrcpyPath } from './scrcpy/index.js'
|
||||
|
||||
export const desktopPath = process.env.DESKTOP_PATH
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user