From 0e64e26688921a93fa9f8c693231152e558c3f5f Mon Sep 17 00:00:00 2001 From: Hiddify Date: Fri, 26 Jan 2024 19:07:38 +0100 Subject: [PATCH] fix: check core before release --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 7380eb18..c67601be 100644 --- a/Makefile +++ b/Makefile @@ -134,9 +134,11 @@ build-ios-libs: mv $(BINDIR)/$(CORE_NAME)-ios.xcframework $(IOS_OUT)/Libcore.xcframework 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 -I -s -w "%{http_code}" https://github.com/hiddify/hiddify-next-core/releases/download/v$(core.version)/hiddify-libcore-windows-amd64.h.gz -o /dev/null) ]&&{ 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"`; \ cbuild_number=`echo "$${cversion_string}" | sed -n "s/.*+\\([0-9]\\+\\)/\\1/p"`; \