fix: release bug

This commit is contained in:
Hiddify
2024-02-02 15:59:03 +01:00
parent 87cd6a06c9
commit a89543e31f
3 changed files with 12 additions and 7 deletions

View File

@@ -74,8 +74,14 @@ jobs:
rm -f /*.h
rm ./hiddify-libcore*sources* ||echo "no source"
rm ./hiddify-libcore-macos-a*.dylib || echo "no macos arm and amd"
tar -czvf hiddify-core-${{ matrix.job.target }}.tar.gz --transform='s,^./,,g' $(find . -regex '\./libcore\.\(dll\|so\|dylib\|xcframework\)$\|./hiddify-service\(\.exe\)*$')
files=$(find . \( -name 'libcore.*' \
-a \( -name '*.dll' -o -name '*.so' -o -name '*.dylib' -name '*.aar' \) \) \
-o \
-name 'Libcore.xcframework' \
-o \
-name 'hiddify-service*' )
tar -czvf hiddify-core-${{ matrix.job.target }}.tar.gz --transform='s,^./,,g' $files
working-directory: bin
- uses: actions/upload-artifact@v3