release: version 2.1.5

This commit is contained in:
hiddify-com
2024-08-05 23:25:26 +02:00
parent 2817b0bbba
commit d6448d1586
8 changed files with 56 additions and 32 deletions

View File

@@ -224,7 +224,7 @@ release: # Create a new tag for release.
@echo "previous version was $$(git describe --tags $$(git rev-list --tags --max-count=1))"
@echo "WARNING: This operation will creates version tag and push to github"
@bash -c '\
[ "404" == $$(curl -o /dev/null -I -s -w "%{http_code}" https://github.com/hiddify/hiddify-core/releases/download/v$(core.version)/hiddify-core-linux-amd64.tar.gz) ]&&{ echo "Core Not Found"; exit 1 ; } || \
[ "404" == $$(curl -o /dev/null -I -s -w "%{http_code}" https://github.com/hiddify/hiddify-core/releases/download/v$(core.version)/hiddify-core-linux-amd64.tar.gz) ]&&{ echo "Core v$(core.version) not Found"; exit 1 ; } || \
cversion_string=`grep -e "^version:" pubspec.yaml | cut -d: -f2-`;\
cstr_version=`echo "$${cversion_string}" | sed -n "s/[ ]*\\([0-9]\\+\\.[0-9]\\+\\.[0-9]\\+\\)+.*/\\1/p"`; \
[ "$$cversion_string" == "" ] && { echo "getting old version error"; exit 1 ; } ||\