build: rename artifacts

This commit is contained in:
leukipp
2025-01-10 22:41:42 +01:00
parent b1998ceea9
commit cfbc391a52
+7 -1
View File
@@ -35,11 +35,17 @@ module.exports = {
hooks: { hooks: {
postMake: async (config, results) => { postMake: async (config, results) => {
for (const result of results) { for (const result of results) {
const artifacts = [];
result.artifacts.forEach((artifact) => { result.artifacts.forEach((artifact) => {
if (artifact.includes("amd64")) { 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;
} }
}, },
}, },