I historically have never liked Electron, and I don't like it now, but unfortunately due to poor browser support, I don't have a choice to ship anything more lightweight if I want to use the Filesystem API as part of the packaged build, which is kind of the point. I guess it's true: "You either die a hero or you live long enough to become the villain." This is an experimental build.
33 lines
1.0 KiB
JSON
33 lines
1.0 KiB
JSON
{
|
|
"name": "kobopatch-electron",
|
|
"version": "1.5.0",
|
|
"private": true,
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"copy-dist": "node copy-dist.mjs",
|
|
"start": "npm run copy-dist && electron .",
|
|
"build": "npm run copy-dist && electron-builder",
|
|
"build:mac": "npm run copy-dist && electron-builder --mac",
|
|
"build:win": "npm run copy-dist && electron-builder --win",
|
|
"build:linux": "npm run copy-dist && electron-builder --linux"
|
|
},
|
|
"devDependencies": {
|
|
"electron": "^35.0.0",
|
|
"electron-builder": "^26.0.0"
|
|
},
|
|
"build": {
|
|
"appId": "be.nicoverbruggen.kobopatch-webui",
|
|
"productName": "KoboPatch Web UI",
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"files": [
|
|
"main.js",
|
|
"dist/**/*"
|
|
],
|
|
"mac": { "target": "dmg", "icon": "dist/favicon/web-app-manifest-512x512.png" },
|
|
"win": { "target": "portable", "icon": "dist/favicon/web-app-manifest-512x512.png" },
|
|
"linux": { "target": "AppImage", "icon": "dist/favicon/web-app-manifest-512x512.png" }
|
|
}
|
|
}
|