mirror of https://github.com/Genymobile/scrcpy
Force the server target filename
The server path may be customized using SCRCPY_APK. If its basename is different from "scrcpy.apk", it will be pushed with a different name, so the execution would fail. Therefore, force the push target filename.
This commit is contained in:
parent
ca44585f96
commit
2172c53b7b
|
@ -11,7 +11,7 @@ process_t push_server(const char *serial) {
|
|||
if (!apk_path) {
|
||||
apk_path = "scrcpy.apk";
|
||||
}
|
||||
return adb_push(serial, apk_path, "/data/local/tmp/");
|
||||
return adb_push(serial, apk_path, "/data/local/tmp/scrcpy.apk");
|
||||
}
|
||||
|
||||
process_t enable_tunnel(const char *serial, Uint16 local_port) {
|
||||
|
|
Loading…
Reference in New Issue