Changed head -4 to head -3 in both scripts so the version picks up only MAJOR.MINOR.REVISION (3.10.5), dropping BUILD (50).

The BUILD number is an internal field, not part of the user-facing release version.
This commit is contained in:
dan_s
2026-02-23 12:59:30 -06:00
parent e4e22abf4c
commit 5f218fdf7f
2 changed files with 8 additions and 7 deletions

View File

@@ -45,8 +45,8 @@ CC="${CC} -g " CXX="${CXX} -g " make V=1 hushd.exe hush-cli.exe hush-tx.exe
# Create release package
cd $WD
echo "Creating Windows release package..."
VERSION=$(grep -oP 'define\(_CLIENT_VERSION.*?,\s*\K[0-9]+' configure.ac | head -4 | tr '\n' '.' | sed 's/\.$//')
VERSION=${VERSION:-3.10.4}
VERSION=$(grep -oP 'define\(_CLIENT_VERSION.*?,\s*\K[0-9]+' configure.ac | head -3 | tr '\n' '.' | sed 's/\.$//')
VERSION=${VERSION:-3.10.5}
RELEASE_DIR="release-win64"
mkdir -p "$RELEASE_DIR"