From cfbc391a52785593204dd76bde96114a7fc9018e Mon Sep 17 00:00:00 2001 From: leukipp Date: Fri, 10 Jan 2025 22:41:42 +0100 Subject: [PATCH] build: rename artifacts --- forge.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/forge.config.js b/forge.config.js index 571a0ab..6cc9c46 100644 --- a/forge.config.js +++ b/forge.config.js @@ -35,11 +35,17 @@ module.exports = { hooks: { postMake: async (config, results) => { for (const result of results) { + const artifacts = []; result.artifacts.forEach((artifact) => { if (artifact.includes("amd64")) { - fs.renameSync(artifact, artifact.replace("amd64", "x64")); + const renamed = artifact.replace("amd64", "x64"); + fs.renameSync(artifact, renamed); + artifacts.push(renamed); + } else { + artifacts.push(artifact); } }); + result.artifacts = artifacts; } }, },