Update version

This commit is contained in:
eyedeekay
2024-05-07 14:04:08 -04:00
parent 021c1cd1ba
commit a4ce1b9a8b
2 changed files with 12 additions and 6 deletions

View File

@ -4,9 +4,15 @@ JNA_VERSION=5.12.1
export JNA_VERSION=5.12.1
export GITHUB_TAG=$(git describe --tags --abbrev=0 | sed 's|i2p||g' | tr -d [a-z-])
VERSIONMAJOR=$(echo "$GITHUB_TAG" | cut -d . -f 1)
VERSIONMINOR=$(echo "$GITHUB_TAG" | cut -d . -f 2)
VERSIONBUILD=$(echo "$GITHUB_TAG" | cut -d . -f 3)
if [ -z "$VERSIONMAJOR" ]; then
VERSIONMAJOR=$(echo "$GITHUB_TAG" | cut -d . -f 1)
fi
if [ -z "$VERSIONMINOR" ]; then
VERSIONMINOR=$(echo "$GITHUB_TAG" | cut -d . -f 2)
fi
if [ -z "$VERSIONBUILD" ]; then
VERSIONBUILD=$(echo "$GITHUB_TAG" | cut -d . -f 3)
fi
if [ -z "$VERSIONMAJOR" ]; then
VERSIONMAJOR=2
fi
@ -14,7 +20,7 @@ if [ -z "$VERSIONMINOR" ]; then
VERSIONMINOR=5
fi
if [ -z "$VERSIONBUILD" ]; then
VERSIONBUILD=0
VERSIONBUILD=1
fi
I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
export I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"

View File

@ -1,3 +1,3 @@
!define VERSIONMAJOR 2
!define VERSIONMINOR 4
!define VERSIONBUILD 0
!define VERSIONMINOR 5
!define VERSIONBUILD 1