Skip to content

Commit

Permalink
fix graphics not working in snap -- fully functional now in devmode
Browse files Browse the repository at this point in the history
  • Loading branch information
GloriousEggroll committed Jul 9, 2024
1 parent 8d81e87 commit 54432ce
Show file tree
Hide file tree
Showing 10 changed files with 665 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packaging/snap/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## NOTICE ##

Due to the mounting and security requirements of pressure-vessel it is unfortunately unlikely that this will ever be accepted as an official snap within the snap store.

With that being said, we have put the snap together for convenience for those that wish to use it in snap-based environments.

Please be aware that this runs in devmode with without any standard snap confinements.

1. Install build dependencies:

snap install snapcraft --classic
Expand Down
File renamed without changes.
43 changes: 43 additions & 0 deletions packaging/snap/snap/keys/B05498B7.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBFDBPfgBCADWEjO8rbwGE7/4II9aZ+gNNarD58/n8PFRerOsUKpo6EvGGr2i
/yIhbEmCTkahQFPHsjPUG4jCcWyIaf2+Cue1lPBmSM5CxVkjwUZPABIhBTmw4T/B
AW8sVq1OQe0uaZNVT8faJlSWQxPrutzi1P+RWyaIUh7DgEXawpRezAOuYxLW8FD3
ppGQs3XV3419aJNMl8UT/GG50sZe9SORC09A4g5M7j0rG8urStp5mH8gPNRrSJWr
ve7tIXVaMuZL7a8Ei0PalAS9ebVwfM9h2J4xyduz2X4PQ8W5fXCfSsZenrdWwLbT
8QiwKomVZXkHwtUOhraBemef1CjMz4u6EG7XABEBAAG0KlZhbHZlIENvcnBvcmF0
aW9uIDxsaW51eEBzdGVhbXBvd2VyZWQuY29tPokBOAQTAQIAIgUCUMujbQIbAwYL
CQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQ8krqn7BUmLeJAAf+PfCXGV/KLYaz
F8o5qLAqqUiuInoF1rJMZhfmd+bfF3q6jNu5oYuu358lsms8ucmXLQ3KObbWrFQz
DQgx+gFxPmI9jSWWynYslulq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Pb1O6ImFVuku5mz5lfphytukF6bNKqtmmsJK3+e+9Bb2diWVeBYbmahHJ6cqalz
GLbyRXLftLkBDQRQwT34AQgAxrJRTslUiqGDjuOV4fPCW5c34hylIaJO0hXbVTrV
unpYm7qDctSRzH6QAtBCxrWSZjUVOy/mEvyxmQLvX33ZtH8w4ewX4OZtADaDGBSN
vhe0ddXyxYCMMFtRq/3DgVODmwC6eaMLMa2WGP9NROCvtc5xQs0Xr6T113JoKv7k
1WR++0V+m36dX+Lv39pq0PJCg6CHpD84g5cmsiePKE+Mp4ZV/js2nOiYT3P7zkPZ
GXp0yvUOT5tmo6xO5N+ving18l75X104/xMBY2VOukCLlgfZVRqbIGGtZqpSaSkE
U/N5bHRaJOpTD4hmGdnKMhoQxfmgsIve5XzV0r+OP3yL2wARAQABiQEfBBgBAgAJ
BQJQwT34AhsMAAoJEPJK6p+wVJi3mCwH/36Vpr7eQU/uOt1xFw+pAvcbCZ485tGU
aFw4MFd4XfAv7ky6UTpx8i6looWadS5nPkpOCc+qwYejM0VmvffgPARt7l2qMjOe
7/K50MCYN2fAhWvqCVwu5h1xVhF0lxzJWOzs1kM9m8bXT3uxhQOiYh+jGzHrnp+A
rAfsUfAlLASpuxi2q9IP3V8qgoN8O/DNPCXv41CdApvzsAYIa8N3nrvM4gO81/Gj
0jKKNJm63YhSEmlfqkm0uKsSTz2f8BPRcwxpGQ9+r5gWIB+9NloH7hXDs/XvZGcg
6bNtSqK4I2ndK/RDoIkzd894A3+LjIpuIT/D04txs87mZzG1r9mb/lo=
=BGxp
-----END PGP PUBLIC KEY BLOCK-----
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,56 @@ environment:
LIBGL_DRIVERS_PATH: $SNAP/graphics/usr/lib/i386-linux-gnu/dri:$SNAP/graphics/usr/lib/x86_64-linux-gnu/dri:${LIBGL_DRIVERS_PATH:+:$LIBGL_DRIVERS_PATH}

parts:
launcher:
plugin: nil
source: ./src
override-build: |
mkdir -p $CRAFT_PART_INSTALL/bin
cp * $CRAFT_PART_INSTALL/bin/
stage-packages:
- python3-gi
- gir1.2-gtk-3.0
stage:
- bin/*
- usr/lib/python3/dist-packages/*
- usr/share/mime/*
- usr/share/icons/*
- usr/lib/**/gtk-3.0*
- etc/gtk-3.0*
- usr/share/*/gir1.2-gtk-3.0*
- usr/**/libfontconfig*
- usr/**/cairo-1*
- usr/**/libatspi*
- usr/**/libavahi-client*
- usr/**/libavahi-common*
- usr/**/libcairo-gobject*
- usr/**/libcairo*
- usr/**/libcolord*
- usr/**/libcups*
- usr/**/libdatrie*
- usr/**/libdconf*
- usr/**/libdeflate*
- usr/**/libepoxy*
- usr/**/libfribidi*
- usr/**/*girepository*
- usr/**/libgraphite2*
- usr/**/libgtk-3*
- usr/**/libharfbuzz*
- usr/**/libjbig*
- usr/**/libjpeg*
- usr/**/liblcms2*
- usr/**/libpango-1*
- usr/**/libpangocairo-1*
- usr/**/libpangoft2-1*
- usr/**/libpangoxft-1*
- usr/**/libpixman-1*
- usr/**/libthai*
- usr/**/libtiff*
- usr/**/libwayland-cursor*
- usr/**/libwebp*
- usr/**/libxcb-render*
- usr/**/libxkbcommon*

umu-run:
plugin: dump
source: https://github.com/Open-Wine-Components/umu-launcher.git
Expand Down Expand Up @@ -237,6 +287,7 @@ parts:

apps:
umu-run:
command-chain: [snap/command-chain/alsa-launch, bin/desktop-launch]
command: /usr/bin/umu-run
plugs:
- shmem
Expand Down Expand Up @@ -273,3 +324,31 @@ apps:
PKG_CONFIG_PATH: $SNAP/usr/lib/i386-linux-gnu/pkgconfig:$SNAP/usr/lib/x86_64-linux-gnu/pkgconfig:$SNAP/usr/lib/pkgconfig
PYTHONPATH: $SNAP/usr/lib/python3/dist-packages
GI_TYPELIB_PATH: $SNAP/usr/lib/x86_64-linux-gnu/girepository-1.0
vulkaninfo:
command-chain: [bin/desktop-launch]
command: bin/vulkaninfo
plugs:
- opengl
- x11
- desktop
vkcube:
command-chain: [bin/desktop-launch]
command: bin/vkcube
plugs:
- opengl
- x11
- desktop
glxinfo:
command-chain: [bin/desktop-launch]
command: bin/glxinfo
plugs:
- opengl
- x11
- desktop
glxgears:
command-chain: [bin/desktop-launch]
command: bin/glxgears
plugs:
- opengl
- x11
- desktop
Loading

0 comments on commit 54432ce

Please sign in to comment.