Skip to content

Commit

Permalink
Revert "[Snap] Switch to graphics-core22 plug"
Browse files Browse the repository at this point in the history
This reverts commit 275a83d.
  • Loading branch information
past-due committed Nov 18, 2023
1 parent 65b202e commit a5d9697
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions .snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,29 @@ architectures:
- build-on: armhf

layout:
/usr/share/libdrm:
bind: $SNAP/graphics/libdrm
/usr/share/drirc.d:
symlink: $SNAP/graphics/drirc.d
/usr/share/X11/XErrorDB:
symlink: $SNAP/graphics/X11/XErrorDB
/usr/share/X11/locale:
symlink: $SNAP/graphics/X11/locale
/usr/share/vulkan:
symlink: $SNAP/usr/share/vulkan
/usr/lib/$CRAFT_ARCH_TRIPLET/libvulkan_intel.so:
symlink: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/libvulkan_intel.so
/usr/lib/$CRAFT_ARCH_TRIPLET/libvulkan_radeon.so:
symlink: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/libvulkan_radeon.so
/usr/lib/$CRAFT_ARCH_TRIPLET/libvulkan_broadcom.so:
symlink: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/libvulkan_broadcom.so
/usr/lib/$CRAFT_ARCH_TRIPLET/libvulkan_freedreno.so:
symlink: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/libvulkan_freedreno.so
/usr/lib/$CRAFT_ARCH_TRIPLET/libvulkan_lvp.so:
symlink: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/libvulkan_lvp.so

plugs:
wz2100-sequences:
interface: content
content: wz2100-sequences
target: $SNAP/usr/share/warzone2100/sequences
default-provider: warzone2100-videos
graphics-core22:
interface: content
target: $SNAP/graphics
default-provider: mesa-core22

apps:
warzone2100:
extensions: [gnome]
command-chain:
- bin/graphics-core22-wrapper
command: usr/bin/warzone2100-launcher.sh warzone2100
common-id: net.wz2100.warzone2100 # should match the appdata/metainfo file's <id> field
desktop: usr/share/applications/net.wz2100.warzone2100.desktop
Expand Down Expand Up @@ -220,20 +218,10 @@ parts:
- libsodium23
- libsqlite3-0
- libglu1-mesa
# - mesa-vulkan-drivers # provided by graphics-core22 / mesa-core22
- mesa-vulkan-drivers
- unzip
- zip

graphics-core22:
after: [warzone2100]
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

# This part removes all the files in this snap which already exist in
# connected content and base snaps. Since these files will be available
# at runtime from the content and base snaps, they do not need to be
Expand All @@ -245,7 +233,6 @@ parts:
after: # Make this part run last; list all your other parts here
- sdl
- warzone2100
- graphics-core22
plugin: nil
build-snaps: # List all content-snaps and base snaps you're using here
- core22
Expand Down

0 comments on commit a5d9697

Please sign in to comment.