build: use x64 names
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user