Add option --install
When this flag is set, the scrcpy is installed rather than pushed to /data/local/tmp.
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
#define OPT_NO_CLEANUP 1037
|
||||
#define OPT_PRINT_FPS 1038
|
||||
#define OPT_NO_POWER_ON 1039
|
||||
#define OPT_INSTALL 1040
|
||||
|
||||
struct sc_option {
|
||||
char shortopt;
|
||||
@@ -207,6 +208,12 @@ static const struct sc_option options[] = {
|
||||
.longopt = "help",
|
||||
.text = "Print this help.",
|
||||
},
|
||||
{
|
||||
.longopt_id = OPT_INSTALL,
|
||||
.longopt = "install",
|
||||
.text = "Install the server (via 'adb install') rather than pushing "
|
||||
"it to /data/local/tmp (via 'adb push').",
|
||||
},
|
||||
{
|
||||
.longopt_id = OPT_LEGACY_PASTE,
|
||||
.longopt = "legacy-paste",
|
||||
@@ -1610,6 +1617,9 @@ parse_args_with_getopt(struct scrcpy_cli_args *args, int argc, char *argv[],
|
||||
case OPT_PRINT_FPS:
|
||||
opts->start_fps_counter = true;
|
||||
break;
|
||||
case OPT_INSTALL:
|
||||
opts->install = true;
|
||||
break;
|
||||
case OPT_OTG:
|
||||
#ifdef HAVE_USB
|
||||
opts->otg = true;
|
||||
|
||||
Reference in New Issue
Block a user