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 26, 2024
1 parent 0a11df5 commit ba3b2f5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ parts:
'*': RabbitCommon/
prime:
- -*

serialportassistant:
after: [rabbitcommon]
# See 'snapcraft plugins'
Expand Down Expand Up @@ -90,14 +90,15 @@ parts:
- -opt/SerialPortAssistant/lib/cmake
- -opt/SerialPortAssistant/lib/pkgconfig
- -opt/SerialPortAssistant/lib/*.a

apps:
serialportassistant:
command: snap/command-chain/desktop-launch $SNAP/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
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/
Expand All @@ -108,4 +109,10 @@ apps:
# See: https://snapcraft.io/docs/supported-interfaces
plugs:
- network
- serial-port
- serial-port
- desktop
- desktop-legacy
- wayland
- x11
- opengl
- home

0 comments on commit ba3b2f5

Please sign in to comment.