better editor
This commit is contained in:
7
Makefile
7
Makefile
@@ -1,3 +1,4 @@
|
||||
.ONESHELL:
|
||||
include dependencies.properties
|
||||
MKDIR := mkdir -p
|
||||
RM := rm -rf
|
||||
@@ -223,9 +224,11 @@ 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 ; }&&\
|
||||
cversion_string=`grep -e "^version:" pubspec.yaml | cut -d: -f2-`; \
|
||||
[ "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 ; } || \
|
||||
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 ; } ||\
|
||||
|
||||
cbuild_number=`echo "$${cversion_string}" | sed -n "s/.*+\\([0-9]\\+\\)/\\1/p"`; \
|
||||
echo "Current Version Name:$${cstr_version} Build Number:$${cbuild_number}";\
|
||||
read -p "new Version? (provide the next x.y.z semver) : " TAG && \
|
||||
|
||||
Reference in New Issue
Block a user