Configura electron-builder para AppImage (Linux) e NSIS (Windows)
- package.json: appId, linux AppImage target, win NSIS target - res/electron/build.json: config completa para electron-builder v26 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
afb2945813
commit
5f94667bf9
2 changed files with 15 additions and 4 deletions
15
package.json
15
package.json
|
|
@ -24,14 +24,23 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "com.tadeu.biolab",
|
"appId": "dev.tadix.biolab",
|
||||||
"productName": "BioLab",
|
"productName": "BioLab",
|
||||||
"directories": {
|
"directories": {
|
||||||
"buildResources": "resources"
|
"buildResources": "res"
|
||||||
|
},
|
||||||
|
"linux": {
|
||||||
|
"target": "AppImage",
|
||||||
|
"icon": "res/icon.png",
|
||||||
|
"category": "Science"
|
||||||
},
|
},
|
||||||
"win": {
|
"win": {
|
||||||
"target": "nsis",
|
"target": "nsis",
|
||||||
"icon": "resources/icon.ico"
|
"icon": "res/icon.ico"
|
||||||
|
},
|
||||||
|
"nsis": {
|
||||||
|
"oneClick": false,
|
||||||
|
"allowToChangeInstallationDirectory": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2,7 +2,9 @@
|
||||||
"appId": "dev.tadix.biolab",
|
"appId": "dev.tadix.biolab",
|
||||||
"productName": "BioLab",
|
"productName": "BioLab",
|
||||||
"directories": {
|
"directories": {
|
||||||
"buildResources": "res"
|
"buildResources": "res",
|
||||||
|
"app": "platforms/electron/www",
|
||||||
|
"output": "platforms/electron/build"
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"target": "AppImage",
|
"target": "AppImage",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue