release: version 2.1.5
This commit is contained in:
2
Makefile
2
Makefile
@@ -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 ; } ||\
|
||||
|
||||
Reference in New Issue
Block a user