Fix build info generation
This commit is contained in:
+4
-4
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": "v0.4-dev",
|
"version": "v0.4",
|
||||||
"branch": "develop/v0.4",
|
"branch": "main",
|
||||||
"commit": "7a27fb8",
|
"commit": "fe267b8",
|
||||||
"timestamp": "2026-07-07T16:46:32+02:00"
|
"timestamp": "2026-07-27T11:08:47+02:00"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,12 +3,13 @@ set -e
|
|||||||
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||||
|
VERSION="${1:-v0.4-dev}"
|
||||||
|
|
||||||
cd "$PROJECT_ROOT"
|
cd "$PROJECT_ROOT"
|
||||||
|
|
||||||
cat > build_info.json <<EOF
|
cat > build_info.json <<EOF
|
||||||
{
|
{
|
||||||
"version": "v0.4-dev",
|
"version": "$VERSION",
|
||||||
"branch": "$(git branch --show-current)",
|
"branch": "$(git branch --show-current)",
|
||||||
"commit": "$(git rev-parse --short HEAD)",
|
"commit": "$(git rev-parse --short HEAD)",
|
||||||
"timestamp": "$(date -Iseconds)"
|
"timestamp": "$(date -Iseconds)"
|
||||||
|
|||||||
Reference in New Issue
Block a user