Skip to content

Commit

Permalink
feat: ✨ Integrate scrcpy binaries for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Nov 6, 2024
1 parent 3190d0d commit 85bf096
Show file tree
Hide file tree
Showing 30 changed files with 5 additions and 17 deletions.
18 changes: 3 additions & 15 deletions electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,13 @@
{
"target": "nsis",
"arch": ["x64", "arm64"]
},
{
"target": "zip",
"arch": ["x64", "arm64"]
},
{
"target": "portable",
"arch": ["x64", "arm64"]
},
{
"target": "appx",
"arch": ["x64", "arm64"]
}
],
"artifactName": "${productName}-${version}-win-${arch}.${ext}",
"extraResources": {
"from": "electron/resources/extra",
"to": "extra",
"filter": ["common", "win"]
"filter": ["common", "win", "win-${arch}"]
}
},
"nsis": {
Expand Down Expand Up @@ -65,7 +53,7 @@
"extraResources": {
"from": "electron/resources/extra",
"to": "extra",
"filter": ["common", "mac"]
"filter": ["common", "mac", "mac-${arch}"]
},
"x64ArchFiles": "Contents/Resources/extra/**/*",
"entitlementsInherit": "entitlements.mac.plist",
Expand Down Expand Up @@ -96,7 +84,7 @@
"extraResources": {
"from": "electron/resources/extra",
"to": "extra",
"filter": ["common", "linux"]
"filter": ["common", "linux", "linux-${arch}", "linux-${target}"]
}
},
"asar": true,
Expand Down
4 changes: 2 additions & 2 deletions electron/configs/scrcpy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export const getScrcpyPath = () => {
switch (process.platform) {
case 'win32':
return extraResolve('win/scrcpy/scrcpy.exe')
// case 'darwin':
// return extraResolve('mac/scrcpy/scrcpy')
case 'darwin':
return extraResolve(`mac-${process.arch}/scrcpy/scrcpy`)
// case 'linux':
// return extraResolve('linux/scrcpy/scrcpy')
default:
Expand Down
Binary file added electron/resources/extra/mac-arm64/scrcpy/adb
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added electron/resources/extra/mac-arm64/scrcpy/scrcpy
Binary file not shown.
Binary file not shown.
Binary file added electron/resources/extra/mac-x64/scrcpy/adb
Binary file not shown.
Binary file added electron/resources/extra/mac-x64/scrcpy/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added electron/resources/extra/mac-x64/scrcpy/scrcpy
Binary file not shown.
Binary file not shown.
Binary file modified electron/resources/extra/win/scrcpy/SDL2.dll
Binary file not shown.
Binary file modified electron/resources/extra/win/scrcpy/avcodec-61.dll
Binary file not shown.
Binary file modified electron/resources/extra/win/scrcpy/avformat-61.dll
Binary file not shown.
Binary file modified electron/resources/extra/win/scrcpy/avutil-59.dll
Binary file not shown.
Binary file modified electron/resources/extra/win/scrcpy/libusb-1.0.dll
Binary file not shown.
Binary file modified electron/resources/extra/win/scrcpy/scrcpy-server
Binary file not shown.
Binary file modified electron/resources/extra/win/scrcpy/scrcpy.exe
Binary file not shown.
Binary file modified electron/resources/extra/win/scrcpy/swresample-5.dll
Binary file not shown.

0 comments on commit 85bf096

Please sign in to comment.