Skip to content

Commit

Permalink
build: rename artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
leukipp committed Jan 10, 2025
1 parent b1998ce commit cfbc391
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
},
},
Expand Down

0 comments on commit cfbc391

Please sign in to comment.