diff options
-rwxr-xr-x | build-helpers/snap-hooks/configure | 7 | ||||
-rw-r--r-- | electron-builder.yml | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/build-helpers/snap-hooks/configure b/build-helpers/snap-hooks/configure new file mode 100755 index 000000000..74f77985b --- /dev/null +++ b/build-helpers/snap-hooks/configure | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | set -eu | ||
3 | |||
4 | wayland_native="$(snapctl get wayland-native)" | ||
5 | if [[ -z "$wayland_native" ]]; then | ||
6 | snapctl set wayland-native=true | ||
7 | fi | ||
diff --git a/electron-builder.yml b/electron-builder.yml index b1ab3016e..94be1dfa1 100644 --- a/electron-builder.yml +++ b/electron-builder.yml | |||
@@ -10,6 +10,8 @@ publish: | |||
10 | snap: | 10 | snap: |
11 | plugs: ["default", "camera", "audio-record", "removable-media"] | 11 | plugs: ["default", "camera", "audio-record", "removable-media"] |
12 | allowNativeWayland: true | 12 | allowNativeWayland: true |
13 | executableArgs: ["$(sh -c '[ \"$(snapctl get wayland-native)\" != \"false\" ] && echo --ozone-platform-hint=auto || true')"] | ||
14 | hooks: ./build-helpers/snap-hooks | ||
13 | publish: | 15 | publish: |
14 | provider: snapStore | 16 | provider: snapStore |
15 | description: 'Ferdium is your cross-platform messaging app / former heir to the throne of Austria-Hungary which brings your chat & messaging services together into one application. For enabling webcam access you need to connect "camera" plug to snap, and for microphone with PulseAudio the "audio-record" plug. This can be done in Snap GUI or via command: `snap connect ferdium:camera; snap connect ferdium:audio-record`.' | 17 | description: 'Ferdium is your cross-platform messaging app / former heir to the throne of Austria-Hungary which brings your chat & messaging services together into one application. For enabling webcam access you need to connect "camera" plug to snap, and for microphone with PulseAudio the "audio-record" plug. This can be done in Snap GUI or via command: `snap connect ferdium:camera; snap connect ferdium:audio-record`.' |