From 30b74f26c537019d44268d69d59d70d3026930b1 Mon Sep 17 00:00:00 2001 From: Kang Lin Date: Tue, 27 Aug 2024 16:46:00 +0800 Subject: [PATCH] Modify snapcraft.yml --- snap/snapcraft.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index f832647..0d8574c 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -93,15 +93,14 @@ parts: apps: serialportassistant: - command: snap/command-chain/desktop-launch $SNAP/opt/SerialPortAssistant/bin/serialportassistant + command-chain: + - snap/command-chain/desktop-launch + command: opt/SerialPortAssistant/bin/serialportassistant # See: https://snapcraft.io/docs/desktop-menu-support#heading--desktop-key desktop: opt/SerialPortAssistant/share/applications/org.Rabbit.SerialPortAssistant.desktop environment: - LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/opt/SerialPortAssistant/lib/$SNAPCRAFT_ARCH_TRIPLET - DISABLE_WAYLAND: 1 - QT_QPA_PLATFORM: wayland + LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/opt/SerialPortAssistant/lib/$SNAPCRAFT_ARCH_TRIPLET:${SNAP}/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}:${SNAP}/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/libproxy QT_PLUGIN_PATH: ${SNAP}/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/qt6/plugins/ - QT_QPA_PLATFORM_PLUGIN_PATH: ${SNAP}/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/qt6/plugins/platforms/ PATH: $SNAP/opt/SerialPortAssistant/bin:$PATH # List extensions, run `snapcraft extensions` extensions: @@ -109,10 +108,12 @@ apps: # See: https://snapcraft.io/docs/supported-interfaces plugs: - network + - network-bind + - network-status - serial-port - desktop - desktop-legacy - wayland - x11 - opengl - - home \ No newline at end of file + - home