From 2cd25fc60c1b04342b12f414bdf183bf9b658277 Mon Sep 17 00:00:00 2001 From: Im-Beast Date: Sat, 7 Dec 2024 18:00:31 +0100 Subject: chore: make download_deps script download everything to dir named `monero_c` when ran directly --- tests/download_deps.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { 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 { 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); } -- cgit v1.2.3