diff --git a/Makefile b/Makefile index 3d72ff45..c441b821 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,11 @@ BRANCH=$(shell git branch --show-current) VERSION=$(shell git describe --tags --abbrev=0 || echo "unknown version") CORE_NAME=hiddify-libcore +ifeq ($(BRANCH),DEVELOP) +CORE_URL=https://github.com/hiddify/hiddify-next-core/releases/download/draft +else CORE_URL=https://github.com/hiddify/hiddify-next-core/releases/download/v$(core.version) - +endif get: flutter pub get @@ -79,4 +82,4 @@ build-macos-libs: make -C libcore -f Makefile macos-universal && mv $(BINDIR)/$(CORE_NAME)-macos-universal.dylib $(DESKTOP_OUT)/libcore.dylib build-ios-libs: #not tested - make -C libcore -f Makefile ios && mv $(BINDIR)/$(CORE_NAME)-ios.xcframework $(DESKTOP_OUT)/libcore.xcframework \ No newline at end of file + make -C libcore -f Makefile ios && mv $(BINDIR)/$(CORE_NAME)-ios.xcframework $(DESKTOP_OUT)/libcore.xcframework