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"));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
+1
-1
@@ -8,7 +8,7 @@ case "$(uname -m)" in
|
|||||||
ARCH="arm64"
|
ARCH="arm64"
|
||||||
;;
|
;;
|
||||||
x86_64)
|
x86_64)
|
||||||
ARCH="amd64"
|
ARCH="x64"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "System architecture $(uname -m) not supported."
|
echo "System architecture $(uname -m) not supported."
|
||||||
|
|||||||
+1
-40
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "touchkio",
|
"name": "touchkio",
|
||||||
"description": "Home Assistant Touch Kiosk",
|
"description": "Home Assistant Touch Kiosk",
|
||||||
|
"homepage": "https://github.com/leukipp/touchkio",
|
||||||
"author": "leukipp",
|
"author": "leukipp",
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -9,46 +10,6 @@
|
|||||||
"start": "electron . --web-url=https://demo.home-assistant.io",
|
"start": "electron . --web-url=https://demo.home-assistant.io",
|
||||||
"build": "electron-forge make"
|
"build": "electron-forge make"
|
||||||
},
|
},
|
||||||
"config": {
|
|
||||||
"forge": {
|
|
||||||
"packagerConfig": {
|
|
||||||
"ignore": [
|
|
||||||
".gitignore",
|
|
||||||
".github/",
|
|
||||||
"docs/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"makers": [
|
|
||||||
{
|
|
||||||
"name": "@electron-forge/maker-zip"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "@electron-forge/maker-deb",
|
|
||||||
"config": {
|
|
||||||
"options": {
|
|
||||||
"productName": "TouchKio",
|
|
||||||
"icon": "img/icon.png",
|
|
||||||
"categories": [
|
|
||||||
"Network"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"publishers": [
|
|
||||||
{
|
|
||||||
"name": "@electron-forge/publisher-github",
|
|
||||||
"config": {
|
|
||||||
"repository": {
|
|
||||||
"owner": "leukipp",
|
|
||||||
"name": "touchkio"
|
|
||||||
},
|
|
||||||
"draft": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"printWidth": 120
|
"printWidth": 120
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user