mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 17:59:50 +02:00
refactor(adb): change sync push args to objects
This commit is contained in:
parent
134e48d620
commit
cde7923856
6 changed files with 96 additions and 57 deletions
|
@ -233,7 +233,10 @@ export class PackageManager extends AdbCommandBase {
|
|||
const filePath = `/data/local/tmp/${fileName}.apk`;
|
||||
|
||||
try {
|
||||
await sync.write(filePath, stream);
|
||||
await sync.write({
|
||||
filename: filePath,
|
||||
file: stream,
|
||||
});
|
||||
} finally {
|
||||
await sync.dispose();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue