Skip to content

Commit ade922c

Browse files
committed
fix(snap): interface 'platform' doesn't exist
Close #1123
1 parent 8670d5a commit ade922c

File tree

1 file changed

+2
-1
lines changed
  • packages/electron-builder/src/targets

1 file changed

+2
-1
lines changed

packages/electron-builder/src/targets/snap.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ export default class SnapTarget extends Target {
6262
[snap.name]: {
6363
command: `desktop-launch $SNAP/${packager.executableName}`,
6464
plugs: [
65-
"home", "x11", "unity7", "unity8", "browser-support", "network", "gsettings", "pulseaudio", "opengl", "platform",
65+
"home", "x11", "unity7", "browser-support", "network", "gsettings", "pulseaudio", "opengl",
6666
]
6767
}
6868
}
6969

7070
if (isUseUbuntuPlatform) {
71+
snap.apps[snap.name].plugs.push("platform")
7172
snap.plugs = {
7273
platform: {
7374
interface: "content",

0 commit comments

Comments
 (0)