Skip to content

Commit 4f426df

Browse files
committed
build: use x64 names
1 parent 7084fc8 commit 4f426df

File tree

3 files changed

+48
-41
lines changed

3 files changed

+48
-41
lines changed

‎forge.config.js‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
const fs = require("fs");
2+
3+
module.exports = {
4+
packagerConfig: {
5+
ignore: [".github", ".gitignore", "install.sh", "forge.config.js"],
6+
},
7+
makers: [
8+
{
9+
name: "@electron-forge/maker-deb",
10+
config: {
11+
options: {
12+
productName: "TouchKio",
13+
productDescription: "Kiosk mode application for a Home Assistant dashboard",
14+
categories: ["Network"],
15+
icon: "img/icon.png",
16+
},
17+
},
18+
},
19+
{
20+
name: "@electron-forge/maker-zip",
21+
},
22+
],
23+
publishers: [
24+
{
25+
name: "@electron-forge/publisher-github",
26+
config: {
27+
repository: {
28+
owner: "leukipp",
29+
name: "touchkio",
30+
},
31+
draft: true,
32+
},
33+
},
34+
],
35+
hooks: {
36+
postMake: async (config, results) => {
37+
for (const result of results) {
38+
result.artifacts.forEach((artifact) => {
39+
if (artifact.includes("amd64")) {
40+
fs.renameSync(artifact, artifact.replace("amd64", "x64"));
41+
}
42+
});
43+
}
44+
},
45+
},
46+
};

‎install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ case "$(uname -m)" in
88
ARCH="arm64"
99
;;
1010
x86_64)
11-
ARCH="amd64"
11+
ARCH="x64"
1212
;;
1313
*)
1414
echo "System architecture $(uname -m) not supported."

‎package.json‎

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "touchkio",
33
"description": "Home Assistant Touch Kiosk",
4+
"homepage": "https://github.com/leukipp/touchkio",
45
"author": "leukipp",
56
"version": "1.0.1",
67
"license": "MIT",
@@ -9,46 +10,6 @@
910
"start": "electron . --web-url=https://demo.home-assistant.io",
1011
"build": "electron-forge make"
1112
},
12-
"config": {
13-
"forge": {
14-
"packagerConfig": {
15-
"ignore": [
16-
".gitignore",
17-
".github/",
18-
"docs/"
19-
]
20-
},
21-
"makers": [
22-
{
23-
"name": "@electron-forge/maker-zip"
24-
},
25-
{
26-
"name": "@electron-forge/maker-deb",
27-
"config": {
28-
"options": {
29-
"productName": "TouchKio",
30-
"icon": "img/icon.png",
31-
"categories": [
32-
"Network"
33-
]
34-
}
35-
}
36-
}
37-
],
38-
"publishers": [
39-
{
40-
"name": "@electron-forge/publisher-github",
41-
"config": {
42-
"repository": {
43-
"owner": "leukipp",
44-
"name": "touchkio"
45-
},
46-
"draft": true
47-
}
48-
}
49-
]
50-
}
51-
},
5213
"prettier": {
5314
"printWidth": 120
5415
},

0 commit comments

Comments
 (0)