Update Makefile

This commit is contained in:
Hiddify
2023-09-12 10:04:07 +02:00
committed by GitHub
parent 8ed6b35752
commit 2a5ce545e7

View File

@@ -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
make -C libcore -f Makefile ios && mv $(BINDIR)/$(CORE_NAME)-ios.xcframework $(DESKTOP_OUT)/libcore.xcframework