Skip to content

Commit

Permalink
Add graphics-core22 plug
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Aug 12, 2023
1 parent 1522286 commit 2c2d2e9
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ confinement: strict
base: core22
grade: stable

plugs:
graphics-core22:
interface: content
target: $SNAP/graphics
default-provider: mesa-core22

layout:
/usr/share/libdrm:
bind: $SNAP/usr/share/libdrm
bind: $SNAP/graphics/libdrm
/usr/share/drirc.d:
symlink: $SNAP/graphics/drirc.d

slots:
dbus-ubuntu-kr-qr-kiosk: # adjust accordingly to your app name
Expand All @@ -19,6 +27,8 @@ slots:

apps:
ubuntu-kr-qr-kiosk:
command-chain: &_command-chain
- bin/graphics-core22-wrapper
command: bin/ubuntu_kr_qr_kiosk
# extensions: [flutter-master] # Where "master" defines which Flutter channel to use for the build
extensions: [gnome]
Expand Down Expand Up @@ -85,4 +95,14 @@ parts:
flutter pub get
flutter build linux --release -v
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/
graphics-core22:
after: [ubuntu-kr-qr-kiosk]
source: https://github.com/MirServer/graphics-core22.git
plugin: dump
override-prime: |
craftctl default
${CRAFT_PART_SRC}/bin/graphics-core22-cleanup mesa-core22 nvidia-core22
prime:
- bin/graphics-core22-wrapper

0 comments on commit 2c2d2e9

Please sign in to comment.