feat: Update 5 files
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 9s
Build-Test-Publish / build (linux/amd64) (push) Failing after 26s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 9s
Build-Test-Publish / build (linux/amd64) (push) Failing after 26s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
This commit is contained in:
@ -13,15 +13,16 @@ if [ "$ARCH" = "aarch64" ]; then
|
||||
fi
|
||||
|
||||
# Increment version
|
||||
if [ ! -f version.h ]; then
|
||||
echo "version.h not found!" >&2
|
||||
VERSION_FILE="${SCRIPT_DIR}/src/version.hpp"
|
||||
if [ ! -f "${VERSION_FILE}" ]; then
|
||||
echo "${VERSION_FILE} not found!" >&2
|
||||
exit 1
|
||||
else
|
||||
v=$(cat version.h | grep -o 'static const char \*VERSION = "[0-9.]*";' | cut -d'"' -f2)
|
||||
v=$(cat "${VERSION_FILE}" | grep -o 'static const char \*VERSION = "[0-9.]*";' | cut -d'"' -f2)
|
||||
oldv=$v
|
||||
v=$((v+1))
|
||||
echo "Incrementing version from $oldv to $v" >&2
|
||||
echo "static const char *VERSION = \"$v\";" > version.h
|
||||
echo "static const char *VERSION = \"$v\";" > "${VERSION_FILE}"
|
||||
fi
|
||||
TAG="v$v"
|
||||
|
||||
|
Reference in New Issue
Block a user