Move download name construction to os installer function

This commit is contained in:
Sander Declerck 2026-01-19 14:53:33 +01:00
parent 27980aec82
commit fa94784130
No known key found for this signature in database
2 changed files with 5 additions and 11 deletions

View file

@ -19,7 +19,8 @@ export async function installOnWindows() {
}
const architecture = getWindowsArchitecture();
const downloadUrl = getAgentDownloadUrl("windows", architecture);
const fileName = `SafeChainAgent-windows-${architecture}.msi`;
const downloadUrl = getAgentDownloadUrl(fileName);
const msiPath = join(tmpdir(), `SafeChainAgent-${Date.now()}.msi`);
ui.emptyLine();