Skip to content

Commit

Permalink
feat: support templating download name
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwillox committed Nov 24, 2024
1 parent cc6511e commit d6c7e20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d6c7e20

Please sign in to comment.