From d6c7e20238df3f48406192aad030d48ebc989149 Mon Sep 17 00:00:00 2001 From: Josh Willox Date: Sun, 24 Nov 2024 18:41:31 +1100 Subject: [PATCH] feat: support templating download name --- src/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.ts b/src/main.ts index 022db8e..99caaea 100644 --- a/src/main.ts +++ b/src/main.ts @@ -58,6 +58,13 @@ export async function main() { throw new Error("Download URL missing"); } + if (config.downloadName) { + config.downloadName = template(config.downloadName, { + ...config, + ...templateArgs, + }); + } + // fetch latest version if not fixed if (config.version === "latest") { const version = await getVersion(config);