Answer the question
In order to leave comments, you need to log in
How to correctly describe the snap section for electron-builder.json?
Can you please tell me how to correctly specify the settings for the snap section in electron-builder.json ? If the application uses third-party applications. In mine it's ffmpeg and graphicsmagick (gm).
For example, for compilation in deb there is a depends block and it works fine. The final deb contains these dependencies, everything works fine. However, in the case of snap , there are no such dependencies (or access to them).
My electron-builder.json:
{
"productName": "sht-vr-player",
"appId": "cf.sht-vr-player",
"directories": {
"buildResources": "build_resources"
},
"linux": {
"target": [
"deb",
"snap"
],
"icon": "icon/current",
"synopsis": "..",
"category": "Graphics",
"description": "..long text.."
},
"deb": {
"depends": [
"ffmpeg",
"graphicsmagick"
]
},
"snap": {
"confinement": "strict",
"stagePackages": [
"default",
"ffmpeg",
"graphicsmagick"
],
"plugs": ["default", "ffmpeg","gm"]
}
}
snapcraft
runs successfully. Have you faced such a problem? Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question