oh my gotto no mor outputto
This commit is contained in:
parent
4d5371be5e
commit
1e8f8d6dc9
4 changed files with 30 additions and 3 deletions
|
|
@ -13,8 +13,7 @@ static class Program
|
|||
|
||||
if (installationRequest is null ||
|
||||
string.IsNullOrEmpty(installationRequest.ApkPath) ||
|
||||
string.IsNullOrEmpty(installationRequest.ZipPath) ||
|
||||
string.IsNullOrEmpty(installationRequest.OutputPath))
|
||||
string.IsNullOrEmpty(installationRequest.ZipPath))
|
||||
{
|
||||
ShowUsage();
|
||||
return;
|
||||
|
|
@ -22,6 +21,11 @@ static class Program
|
|||
|
||||
var adbService = new AdbService();
|
||||
|
||||
var apkInfo = ApkScrapper.GetApkInfo(installationRequest.ApkPath);
|
||||
var zipName = Path.GetFileName(installationRequest.ZipPath);
|
||||
var outputPath =
|
||||
@$"/storage/emulated/0/Android/data/{apkInfo.PackageName}/files/{zipName}";
|
||||
|
||||
// Подписка на события прогресса
|
||||
adbService.ProgressChanged += OnProgressChanged;
|
||||
adbService.StatusChanged += OnStatusChanged;
|
||||
|
|
@ -41,7 +45,7 @@ static class Program
|
|||
Console.WriteLine();
|
||||
|
||||
// Копирование файла
|
||||
await adbService.CopyFileAsync(installationRequest.ZipPath, installationRequest.OutputPath, progress);
|
||||
await adbService.CopyFileAsync(installationRequest.ZipPath, outputPath, progress);
|
||||
Console.WriteLine();
|
||||
|
||||
Console.WriteLine("Операция завершена успешно!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue