-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
858 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
import { extraResolve } from '$electron/helpers/index.js' | ||
import { archResolve, extraResolve } from '$electron/helpers/index.js' | ||
import which from 'which' | ||
|
||
export const getScrcpyPath = () => { | ||
if (['win32'].includes(process.platform)) { | ||
return extraResolve('win/scrcpy/scrcpy.exe') | ||
} | ||
else if (['darwin'].includes(process.platform)) { | ||
if (['arm64'].includes(process.arch)) { | ||
return extraResolve(`mac/scrcpy/scrcpy`) | ||
} | ||
} | ||
else if (['linux'].includes(process.platform)) { | ||
return extraResolve('linux/scrcpy/scrcpy') | ||
} | ||
export function getScrcpyPath() { | ||
switch (process.platform) { | ||
case 'win32': | ||
return extraResolve(archResolve('win#{arch}/scrcpy/scrcpy.exe')) | ||
case 'darwin': | ||
return extraResolve(archResolve('mac#{arch}/scrcpy/scrcpy')) | ||
case 'linux': | ||
return extraResolve(archResolve('linux#{arch}/scrcpy/scrcpy')) | ||
|
||
return which.sync('scrcpy', { nothrow: true }) | ||
default: | ||
return which.sync('scrcpy', { nothrow: true }) | ||
} | ||
} | ||
|
||
export const scrcpyPath = getScrcpyPath() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes
Binary file renamed
BIN
+5.82 MB
...ron/resources/extra/mac/scrcpy/scrcpy_bin → ...n/resources/extra/mac-arm64/scrcpy/scrcpy
Binary file not shown.
Binary file not shown.
Oops, something went wrong.