From 2a5ce545e7a782c69fedf0266b6f5a2883ad4034 Mon Sep 17 00:00:00 2001 From: Hiddify <114227601+hiddify-com@users.noreply.github.com> Date: Tue, 12 Sep 2023 10:04:07 +0200 Subject: [PATCH] Update Makefile --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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