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
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ process_t push_server(const char *serial) {
|
||||||
if (!apk_path) {
|
if (!apk_path) {
|
||||||
apk_path = "scrcpy.apk";
|
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) {
|
process_t enable_tunnel(const char *serial, Uint16 local_port) {
|
||||||
|
|
Loading…
Reference in a new issue