refactor(download): refactor download module
test / test (push) Failing after 5m35s

This commit is contained in:
2026-10-27 01:04:16 +03:00
parent 188fcc8e4c
commit cf3a707a47
7 changed files with 105 additions and 79 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ import fs from "fs";
import os from "os";
import path from "path";
import through from "through2";
import { Downloader } from "../common/download";
import download from "../common/download";
import { Env } from "../common/env";
import exec from "../common/exec";
import { System } from "../common/system";
@@ -62,10 +62,10 @@ export class Android extends Sdk {
}
prepare_ndk(): Promise<any> {
// ToDo: support windows
// TODO: support windows
const url = `${this.repository}/android-ndk-${this.ndk_version}-${System.os}-x86_64.zip`;
this.log.d("download: *%s*", url);
return Downloader.download(url, this.ndk_home, 1, true);
return download(url, this.ndk_home, { executable: true });
}
sdkmanager(packages: string[]) {