diff options
author | Marco Trevisan <mail@3v1n0.net> | 2023-11-27 01:19:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-26 17:19:07 -0700 |
commit | beea57dfe58b7f7c8269e8c4ca6cdc50d8376b76 (patch) | |
tree | 3db387467728bff38fbe488ca281f4c6c33ec39e | |
parent | 6.6.1-nightly.10 [skip ci] (diff) | |
download | ferdium-app-beea57dfe58b7f7c8269e8c4ca6cdc50d8376b76.tar.gz ferdium-app-beea57dfe58b7f7c8269e8c4ca6cdc50d8376b76.tar.zst ferdium-app-beea57dfe58b7f7c8269e8c4ca6cdc50d8376b76.zip |
electron-builder: Run snap as native wayland client unless specified (#1456)
-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`.' |