Skip to content

Commit

Permalink
feat: Upgrade MangoHUD to 0.7.2 (#392)
Browse files Browse the repository at this point in the history
Upgrades MangoHUD from 0.6.8 to 0.7.2.

---

UDENG-3244
  • Loading branch information
ZoopOTheGoop authored Jul 15, 2024
2 parents 175b4da + cf5dfe0 commit 91d82a6
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ hooks:
- opengl

environment:
LD_LIBRARY_PATH: $SNAP/graphics/lib/i386-linux-gnu:$SNAP/graphics/usr/lib:$SNAP/usr/lib/i386-linux-gnu:$SNAP/lib/i386-linux-gnu:$SNAP/usr/lib/i386-linux-gnu/pulseaudio${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
LD_LIBRARY_PATH: $SNAP/graphics/lib/i386-linux-gnu:$SNAP/graphics/usr/lib:$SNAP/usr/lib/i386-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/lib/i386-linux-gnu:$SNAP/usr/lib/i386-linux-gnu/pulseaudio${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
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:
Expand Down Expand Up @@ -215,7 +215,7 @@ parts:
ninja:
plugin: nil
source: https://github.com/ninja-build/ninja.git
source-tag: "v1.11.0"
source-tag: "v1.12.1"
override-build: |
rm -rf build
rm -f ninja
Expand All @@ -237,7 +237,7 @@ parts:
after: [ninja]
plugin: nil
source: https://github.com/mesonbuild/meson.git
source-tag: "1.0.1"
source-tag: "1.4.1"
override-build: |
python3 -m pip install .
mkdir -p $CRAFT_PART_INSTALL/usr/lib/python3/dist-packages
Expand All @@ -254,7 +254,7 @@ parts:
mangohud:
after: [meson-deps]
source: https://github.com/flightlessmango/MangoHud.git
source-tag: "v0.6.8"
source-tag: "v0.7.2"
plugin: meson
organize:
snap/steam/current/usr: usr
Expand All @@ -280,21 +280,32 @@ 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.8"
source-tag: "v0.7.2"
plugin: meson
organize:
snap/steam/current/usr: usr
meson-parameters:
- --prefix=/usr
- --libdir=lib/x86_64-linux-gnu
- -Dappend_libdir_mangohud=false
stage:
- -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 91d82a6

Please sign in to comment.