prometeu-runtime/scripts/gen-version.sh
2026-03-24 13:40:18 +00:00

12 lines
510 B
Bash
Executable File

#!/bin/bash
# Get version from git tag or fallback to Cargo.toml version
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || grep -m 1 '^version =' crates/prometeu-runtime-desktop/Cargo.toml | cut -d '"' -f 2 || echo "0.1.0")
echo "$VERSION" > VERSION.txt
echo "Generated VERSION.txt with version $VERSION"
# Prepare staging for SDK extra files
echo "Preparing dist-staging..."
rm -rf dist-staging
mkdir -p dist-staging/devtools-protocol
cp devtools-protocol/protocol.json dist-staging/devtools-protocol/