Skip to content

Commit

Permalink
fix: no LD_PRELOAD error (with caveats)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe Spellman committed Jul 12, 2024
1 parent d9573db commit cf5dfe0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ parts:
mangohud:
after: [meson-deps]
source: https://github.com/flightlessmango/MangoHud.git
source-tag: "v0.6.9-1"
source-tag: "v0.7.2"
plugin: meson
organize:
snap/steam/current/usr: usr
Expand All @@ -280,11 +280,19 @@ parts:
- libxnvctrl-dev
- mesa-common-dev
- python3-mako
- libwayland-dev:i386
- libwayland-dev
- libxkbcommon-dev:i386
- libxkbcommon-dev
# Fixes the $LIB being escaped for some reason
override-build: |
craftctl default
sed -i 's/\/usr\/\\\$LIB/\$SNAP\/usr\/lib\/x86_64-linux-gnu/' $CRAFT_PART_INSTALL/usr/bin/mangohud
mangohud64:
after: [meson-deps, mangohud]
source: https://github.com/flightlessmango/MangoHud.git
source-tag: "v0.6.9-1"
source-tag: "v0.7.2"
plugin: meson
organize:
snap/steam/current/usr: usr
Expand All @@ -296,6 +304,8 @@ parts:
- -usr/bin/mangohud
- -usr/share/vulkan/implicit_layer.d/MangoHud.json
- -usr/share/vulkan/implicit_layer.d/libMangoApp.json
- -usr/share/doc/mangohud/MangoHud.conf.example
- -usr/share/man/man1/mangohud.1

gamemode:
after: [meson-deps]
Expand Down

0 comments on commit cf5dfe0

Please sign in to comment.