summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIm-Beast <franik.mateusz@gmail.com>2024-12-07 18:00:31 +0100
committerIm-Beast <franik.mateusz@gmail.com>2024-12-07 18:00:31 +0100
commit2cd25fc60c1b04342b12f414bdf183bf9b658277 (patch)
tree97a340f83830ac7a8237d08d8ce52f906b58068d
parent7232cf94fb27b50c5a496cab9f8d047bd88e09fa (diff)
chore: make download_deps script download everything to dir named `monero_c` when ran directly
-rw-r--r--tests/download_deps.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/download_deps.ts b/tests/download_deps.ts
index fb489f8..81d7f9d 100644
--- a/tests/download_deps.ts
+++ b/tests/download_deps.ts
@@ -36,7 +36,7 @@ async function sha256(buffer: Uint8Array): Promise<string> {
return Array.from(hashed).map((i) => i.toString(16).padStart(2, "0")).join("");
}
-const outDir = "./tests/dependencies";
+let outDir = "./tests/dependencies";
export async function downloadDependencies(...infos: DownloadInfo[]): Promise<void> {
try {
await Deno.mkdir(outDir, { recursive: true });
@@ -156,6 +156,9 @@ for (const tag of await getMoneroCTags()) {
}
}
+// Download files to the monero_c folder
+// (used on mirror to keep files up to date)
if (import.meta.main) {
+ outDir = "./monero_c";
downloadDependencies(moneroCliInfo, wowneroCliInfo, ...moneroCInfos);
}