scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Standalone Binary for MacOS just like Windows

Open Genxster1998 opened this issue 3 years ago • 13 comments

Its very deterrent that MacOS users have to install a pathetic package manager which itself cost 3-4GB storage and take immense time to update repo like Homebrew , Macports to install scrcpy . Is it not going to get solved #1733 Please Close it if its not possible at all . Others are cashing it out like paid software Wormhole for mac performing same thing essentially using scrcpy source at core .

Genxster1998 avatar May 02 '22 06:05 Genxster1998

@Genxster1998 in contrast to scrcpy:

  1. for Android, Wormhole also needs an app installed on the phone as per their FAQ (haven't used the software yet)
  2. in macOS, it asks to allow access via System Prefs > Security > Privacy > Accessibility

How do you know that Wormhole for Mac is using scrcpy source at core if there is a core difference to begin with? Can you please share links regarding your claim to follow and read?

(at least their Mac app "only" weighs 124 MB, and their current Android app from October 14, 2021 only 6.8 MB)

LeeBinder avatar May 12 '22 08:05 LeeBinder

@LeeBinder I meant with technology idea ... You think scrcpy don't need a server or only need it to be temporarily injected in art /dalvik runtime via a jar not apk ,come on ! I have seen same dependencies like avcodec, avutil avformat libs in its app supporting files . It uses Qt but I won't say that this is a poor wrapper blatantly copy things underhood. For windows scrcpy provides fairly standalone binary instead of pulling 2GB+ other unix dependencies packages .

Genxster1998 avatar May 12 '22 14:05 Genxster1998

How do you know that Wormhole for Mac is using scrcpy source at core if there is a core difference to begin with?

Out of curiosity, I just checked: I installed the app in a VM, then decompiled Wormhole.apk (with jadx). There are a lot of additional dependencies (both for the client and the server). In the server, only one directory is obfuscated, but there is no doubt that it's the code of scrcpy (an old version).

For example (wormhole on the left, scrcpy on the right): controlmessagereader workarounds

All the other files are also obviously the same as scrcpy source files. And the directory structure is the same.

They just replaced "com.genymobile.scrcpy" with "com.viper.wormhole".

rom1v avatar May 12 '22 15:05 rom1v

@ Romain I am sorry to see what you just found out. Did they infringe upon the Apache license you have filed scrcpy under as per that section in your ReadMe? I don't see any official mention of scrcpy anywhere throughout their website.

Their Google Pay Store's page discloses their full address (in UK).

@Genxster1998 good job, you have sensitive detective whiskers!

I'm not a dev so even if I looked at the source code, I wouldn't be able to tell the exact digital magic Romain is using for scrcpy. Sure it's doing some live runtime injection into Android components via adb, otherwise it wouldn't perform, but like Romain states in the ReadMe:

non-intrusiveness: nothing is left installed on the Android device

@rom1v would it be of any help if you had a chance to run macOS - would that enable you to compile all the components for a stand-alone package for Mac only containing scrcpy itself + the necessary dependencies (binaries, dylds, headers etc.) analog to the nicely small Windows zip package?

LeeBinder avatar May 12 '22 19:05 LeeBinder

@Genxster1998 thanks to neverpanic's detailed yet brief instructions, we can now build the stand-alone ourselves - it's really super-easy, see here and ff 👍

I have scrcpy stand-alone running perfectly in macOS Catalina :)

LeeBinder avatar May 13 '22 17:05 LeeBinder

sound that it's already to support Standalone Binary for MacOS? Good :) I also don't like installing such more dependence haha..

shuosiw avatar Jun 05 '22 02:06 shuosiw

scrcpy for macOS

Coool avatar Sep 16 '22 22:09 Coool

@Coool could not run 'scrcpy' in Terminal. here's a hint - Could not open 'scrcpy' because the developer could not be verified

zhaoyueer avatar Nov 06 '22 09:11 zhaoyueer

scrcpy for macOS

@Coool please update v2.0 :) thx

shuosiw avatar Apr 12 '23 07:04 shuosiw

@shuosiw, scrcpy v2.0 for macOS.

P.S. Report on which macOS version binary is working!

Coool avatar Apr 17 '23 23:04 Coool

@shuosiw, scrcpy v2.0 for macOS.

P.S. Report on which macOS version binary is working!

@Coool zsh: bad CPU type in executable: ./scrcpy ,pls support Apple silicon m1&m2,pls update,thx

hellokuan avatar Apr 27 '23 02:04 hellokuan

@Coool can you tell me , how to build a standalone binary for macOS(Apple silicon m1&m2)?

hellokuan avatar Apr 27 '23 02:04 hellokuan

@shuosiw, scrcpy v2.0 for macOS.

P.S. Report on which macOS version binary is working!

Please update to v2.2 or refer to the provided tutorial for instructions. Thank you very much.

t880216t avatar Nov 15 '23 13:11 t880216t

@shuosiw, scrcpy v2.0 for macOS. P.S. Report on which macOS version binary is working!

Please update to v2.2 or refer to the provided tutorial for instructions. Thank you very much.

Please update to v2.4 or refer to the provided tutorial for instructions. Thank you very much.

aeroxy avatar May 13 '24 14:05 aeroxy