From 654a4162b96a45d4609abebba8d117cb23ebd91d Mon Sep 17 00:00:00 2001 From: Hiddify <114227601+hiddify-com@users.noreply.github.com> Date: Wed, 10 Jan 2024 16:42:14 +0000 Subject: [PATCH] new: update plist for ios --- Info.plist | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ Makefile | 4 ++++ 2 files changed, 54 insertions(+) create mode 100644 Info.plist diff --git a/Info.plist b/Info.plist new file mode 100644 index 0000000..86100cb --- /dev/null +++ b/Info.plist @@ -0,0 +1,50 @@ + + + + + AvailableLibraries + + + BinaryPath + Libcore.framework/Libcore + LibraryIdentifier + ios-arm64_x86_64-simulator + LibraryPath + Libcore.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + simulator + + + BinaryPath + Libcore.framework/Libcore + LibraryIdentifier + ios-arm64 + LibraryPath + Libcore.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + CFBundleIdentifier + ios.libcore.hiddify + CFBundleShortVersionString0.10.0 + CFBundleVersion0.10.0 + MinimumOSVersion + 15.0 + + \ No newline at end of file diff --git a/Makefile b/Makefile index d721fc2..09e6744 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,8 @@ ios: lib_install gomobile bind -v -target ios -libname=box -tags=$(TAGS),with_dhcp,with_low_memory,with_conntrack -trimpath -ldflags="-w -s" -o $(BINDIR)/$(PRODUCT_NAME).xcframework github.com/sagernet/sing-box/experimental/libbox ./mobile &&\ mv $(BINDIR)/$(PRODUCT_NAME).xcframework $(BINDIR)/$(NAME).xcframework &&\ cp Libcore.podspec $(BINDIR)/$(NAME).xcframework/ + cp Info.plist $(BINDIR)/$(NAME).xcframework/ + windows-amd64: @@ -60,6 +62,8 @@ release: # Create a new tag for release. BUILD_NUMBER=$$(( $${VERSION_ARRAY[0]} * 10000 + $${VERSION_ARRAY[1]} * 100 + $${VERSION_ARRAY[2]} )) && \ echo "version: $${VERSION_STR}+$${BUILD_NUMBER}" && \ sed -i "s/^s.version: .*/s.version = '$${VERSION_STR}'/g" Libcore.podspec && \ + sed -i -e "s|CFBundleVersion\s*[^<]*|CFBundleVersion$${VERSION_STR}|" Info.plist &&\ + sed -i -e "s|CFBundleShortVersionString\s*[^<]*|CFBundleShortVersionString$${VERSION_STR}|" Info.plist &&\ git tag $${TAG} > /dev/null && \ git tag -d $${TAG} > /dev/null && \ git add Libcore.podspec && \