Skip to content

Commit

Permalink
Modify snapcraft.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Aug 27, 2024
1 parent ba3b2f5 commit 30b74f2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,26 +93,27 @@ 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:
- gnome
# See: https://snapcraft.io/docs/supported-interfaces
plugs:
- network
- network-bind
- network-status
- serial-port
- desktop
- desktop-legacy
- wayland
- x11
- opengl
- home
- home

0 comments on commit 30b74f2

Please sign in to comment.