From b3c541f743747742144199ca044f4dadb8cebc12 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 19 Nov 2024 15:32:09 +0100 Subject: [PATCH] fix: don't mark cross compiled builds as dirty --- Catalogger.Backend/BuildInfo.cs | 2 ++ build_info.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Catalogger.Backend/BuildInfo.cs b/Catalogger.Backend/BuildInfo.cs index 2c55730..95ca05f 100644 --- a/Catalogger.Backend/BuildInfo.cs +++ b/Catalogger.Backend/BuildInfo.cs @@ -40,5 +40,7 @@ public static class BuildInfo Version = versionData[0]; if (versionData[1] != "0" || dirty) Version += $"+{versionData[2]}"; + if (dirty) + Version += ".dirty"; } } diff --git a/build_info.sh b/build_info.sh index c644a3c..8dbbed8 100755 --- a/build_info.sh +++ b/build_info.sh @@ -1,4 +1,4 @@ #!/bin/sh (git rev-parse HEAD && git describe --tags --always --long && - if test -z "$(git ls-files --exclude-standard --modified --deleted --others)"; then echo clean; else echo dirty; fi) > ../.version + if test -z "$(git ls-files --exclude-standard --modified --deleted --others -- '*' '!packages.lock.json')"; then echo clean; else echo dirty; fi) > ../.version