mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-10-31 15:20:13 +00:00
build.sh: fix VERSION with tags
This commit is contained in:
parent
4ee5670ac2
commit
56099d1035
2
build.sh
2
build.sh
@ -5,7 +5,7 @@ LAYER=build/release/usr/share/vulkan/implicit_layer.d/mangohud.json
|
||||
INSTALL_DIR=build/package/MangoHud/.local/share
|
||||
IMPLICIT_LAYER_DIR=$HOME/.local/share/vulkan/implicit_layer.d
|
||||
DISTRO=$(sed 1q /etc/os-release | sed 's/NAME=//g' | sed 's/"//g')
|
||||
VERSION=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
|
||||
VERSION=$(git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//')
|
||||
|
||||
dependencies() {
|
||||
if [[ ! -f build/release/usr/lib64/libMangoHud.so ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user