build: use electron forge
This commit is contained in:
+40
-16
@@ -2,32 +2,56 @@
|
||||
"name": "touchkio",
|
||||
"description": "Home Assistant Touch Kiosk",
|
||||
"author": "leukipp",
|
||||
"version": "1.0.0",
|
||||
"version": "0.0.1",
|
||||
"license": "MIT",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"start": "electron . --web-url=https://demo.home-assistant.io",
|
||||
"build": "electron-builder --linux AppImage --arm64"
|
||||
"build": "electron-forge make"
|
||||
},
|
||||
"build": {
|
||||
"productName": "touchkio",
|
||||
"linux": {
|
||||
"target": [
|
||||
"config": {
|
||||
"forge": {
|
||||
"packagerConfig": {
|
||||
"ignore": [
|
||||
".gitignore",
|
||||
".github/",
|
||||
"docs/"
|
||||
]
|
||||
},
|
||||
"makers": [
|
||||
{
|
||||
"target": "AppImage",
|
||||
"arch": [
|
||||
"arm64"
|
||||
]
|
||||
"name": "@electron-forge/maker-zip"
|
||||
},
|
||||
{
|
||||
"name": "@electron-forge/maker-deb",
|
||||
"config": {
|
||||
"options": {
|
||||
"icon": "img/icon.png",
|
||||
"category": "Network"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"icon": "img/icon.png",
|
||||
"category": "Network"
|
||||
},
|
||||
"artifactName": "${productName}-${version}-${arch}.AppImage"
|
||||
"publishers": [
|
||||
{
|
||||
"name": "@electron-forge/publisher-github",
|
||||
"config": {
|
||||
"repository": {
|
||||
"owner": "leukipp",
|
||||
"name": "test"
|
||||
},
|
||||
"draft": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"electron": "^33.2.1",
|
||||
"electron-builder": "^25.1.8"
|
||||
"@electron-forge/cli": "^7.6.0",
|
||||
"@electron-forge/maker-deb": "^7.6.0",
|
||||
"@electron-forge/maker-zip": "^7.6.0",
|
||||
"@electron-forge/publisher-github": "^7.6.0",
|
||||
"electron": "^33.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"mqtt": "^5.10.3"
|
||||
|
||||
Reference in New Issue
Block a user