Fix build info generation

This commit is contained in:
2026-07-27 11:11:32 +02:00
parent fe267b8766
commit 3b44048250
2 changed files with 6 additions and 5 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
{
"version": "v0.4-dev",
"branch": "develop/v0.4",
"commit": "7a27fb8",
"timestamp": "2026-07-07T16:46:32+02:00"
"version": "v0.4",
"branch": "main",
"commit": "fe267b8",
"timestamp": "2026-07-27T11:08:47+02:00"
}
+2 -1
View File
@@ -3,12 +3,13 @@ set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
VERSION="${1:-v0.4-dev}"
cd "$PROJECT_ROOT"
cat > build_info.json <<EOF
{
"version": "v0.4-dev",
"version": "$VERSION",
"branch": "$(git branch --show-current)",
"commit": "$(git rev-parse --short HEAD)",
"timestamp": "$(date -Iseconds)"