fix: more release bug

This commit is contained in:
Hiddify
2024-02-02 16:15:21 +01:00
parent a89543e31f
commit cd1003cbeb
2 changed files with 8 additions and 7 deletions

View File

@@ -79,9 +79,11 @@ jobs:
-o \ -o \
-name 'Libcore.xcframework' \ -name 'Libcore.xcframework' \
-o \ -o \
-name 'hiddify-service*' ) -name 'hiddify-service*' | sed 's/\.\///g')
tar -czvf hiddify-core-${{ matrix.job.target }}.tar.gz --transform='s,^./,,g' $files
echo tar -czvf hiddify-core-${{ matrix.job.target }}.tar.gz $files
tar -czvf hiddify-core-${{ matrix.job.target }}.tar.gz $files
working-directory: bin working-directory: bin
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3

View File

@@ -24,14 +24,13 @@ android: lib_install
gomobile bind -v -androidapi=21 -javapkg=io.nekohasekai -libname=box -tags=$(TAGS) -trimpath -target=android -o $(BINDIR)/$(LIBNAME).aar github.com/sagernet/sing-box/experimental/libbox ./mobile gomobile bind -v -androidapi=21 -javapkg=io.nekohasekai -libname=box -tags=$(TAGS) -trimpath -target=android -o $(BINDIR)/$(LIBNAME).aar github.com/sagernet/sing-box/experimental/libbox ./mobile
ios-full: lib_install ios-full: lib_install
gomobile bind -v -target ios,iossimulator,tvos,tvossimulator,macos -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 &&\ gomobile bind -v -target ios,iossimulator,tvos,tvossimulator,macos -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)/$(LIBNAME).xcframework &&\ mv $(BINDIR)/$(PRODUCT_NAME).xcframework $(BINDIR)/$(LIBNAME).xcframework
cp Libcore.podspec $(BINDIR)/$(LIBNAME).xcframework/ cp Libcore.podspec $(BINDIR)/$(LIBNAME).xcframework/
ios: lib_install 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 &&\ gomobile bind -v -target ios -libname=box -tags=$(TAGS),with_dhcp,with_low_memory,with_conntrack -trimpath -ldflags="-w -s" -o $(BINDIR)/Libcore.xcframework github.com/sagernet/sing-box/experimental/libbox ./mobile
mv $(BINDIR)/$(PRODUCT_NAME).xcframework $(BINDIR)/$(LIBNAME).xcframework &&\ cp Info.plist $(BINDIR)/Libcore.xcframework/
cp Info.plist $(BINDIR)/$(LIBNAME).xcframework/