build: use x64 names

This commit is contained in:
leukipp
2025-01-09 17:14:19 +01:00
parent 7084fc8188
commit 4f426df4e6
3 changed files with 48 additions and 41 deletions
+46
View File
@@ -0,0 +1,46 @@
const fs = require("fs");
module.exports = {
packagerConfig: {
ignore: [".github", ".gitignore", "install.sh", "forge.config.js"],
},
makers: [
{
name: "@electron-forge/maker-deb",
config: {
options: {
productName: "TouchKio",
productDescription: "Kiosk mode application for a Home Assistant dashboard",
categories: ["Network"],
icon: "img/icon.png",
},
},
},
{
name: "@electron-forge/maker-zip",
},
],
publishers: [
{
name: "@electron-forge/publisher-github",
config: {
repository: {
owner: "leukipp",
name: "touchkio",
},
draft: true,
},
},
],
hooks: {
postMake: async (config, results) => {
for (const result of results) {
result.artifacts.forEach((artifact) => {
if (artifact.includes("amd64")) {
fs.renameSync(artifact, artifact.replace("amd64", "x64"));
}
});
}
},
},
};