diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95ac5e9..0264036 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,6 @@ on: - '**.md' - 'docs/**' - '.github/**' - - 'Package.swift' - '!.github/workflows/release.yml' jobs: @@ -73,21 +72,15 @@ jobs: - name: zip run: | tree - rm -f ./bin/*.h - rm ./bin/hiddify-libcore*sources* ||echo "no source" - rm ./bin/hiddify-libcore-macos-a*.dylib || echo "no macos arm and amd" + rm -f /*.h + rm ./hiddify-libcore*sources* ||echo "no source" + rm ./hiddify-libcore-macos-a*.dylib || echo "no macos arm and amd" if [[ "${{ matrix.job.target }}" == "ios" ]];then - cd bin - zip -r hiddify-libcore-ios.xcframework.zip hiddify-libcore-ios.xcframework + tar -czvf hiddify-libcore-ios.xcframework.tar.gz hiddify-libcore-ios.xcframework rm -rf hiddify-libcore-ios.xcframework - else - gzip -r -S ".gz" ./bin/hiddify-libcore* + gzip -r -S ".gz" ./hiddify-libcore* fi - - name: Calculate SHA256 Checksum - if: startsWith(matrix.job.target,'ios') - run: | - sha256sum hiddify-libcore-ios.xcframework.zip | awk '{print $1}'> hiddify-libcore-ios.xcframework.zip.sha256 working-directory: bin - uses: actions/upload-artifact@v3 if: ${{ success() }} diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/.swiftpm/xcode/package.xcworkspace/xcuserdata/amirsaam.xcuserdatad/UserInterfaceState.xcuserstate b/.swiftpm/xcode/package.xcworkspace/xcuserdata/amirsaam.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index 8b6aa20..0000000 Binary files a/.swiftpm/xcode/package.xcworkspace/xcuserdata/amirsaam.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ diff --git a/.swiftpm/xcode/xcuserdata/amirsaam.xcuserdatad/xcschemes/xcschememanagement.plist b/.swiftpm/xcode/xcuserdata/amirsaam.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index 717b296..0000000 --- a/.swiftpm/xcode/xcuserdata/amirsaam.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,32 +0,0 @@ - - - - - SchemeUserState - - Libcore.xcscheme_^#shared#^_ - - orderHint - 0 - - hiddify-next-core-Package.xcscheme_^#shared#^_ - - orderHint - 1 - - - SuppressBuildableAutocreation - - Libcore - - primary - - - hiddify-next-core - - primary - - - - - diff --git a/Makefile b/Makefile index fef8cf6..ac8a5b9 100644 --- a/Makefile +++ b/Makefile @@ -60,12 +60,11 @@ release: # Create a new tag for release. VERSION_STR="$${VERSION_ARRAY[0]}.$${VERSION_ARRAY[1]}.$${VERSION_ARRAY[2]}" && \ BUILD_NUMBER=$$(( $${VERSION_ARRAY[0]} * 10000 + $${VERSION_ARRAY[1]} * 100 + $${VERSION_ARRAY[2]} )) && \ echo "version: $${VERSION_STR}+$${BUILD_NUMBER}" && \ - sed -i "s/^let version: .*/let version = \"v$${VERSION_STR}\"/g" Package.swift && \ 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 Package.swift Info.plist && \ + git add Info.plist && \ git commit -m "release: version $${TAG}" && \ echo "creating git tag : v$${TAG}" && \ git tag v$${TAG} && \ diff --git a/Package.swift b/Package.swift deleted file mode 100644 index 4b16ca6..0000000 --- a/Package.swift +++ /dev/null @@ -1,31 +0,0 @@ -// swift-tools-version: 5.4 -// The swift-tools-version declares the minimum version of Swift required to build this package. - -import PackageDescription -import Foundation - -let version = "draft" -let baseURL = "https://github.com/hiddify/hiddify-next-core/releases/download/" -let packageURL = baseURL + version + "/hiddify-libcore-ios.xcframework.zip" - -let package = Package( - name: "Libcore", - platforms: [ - .iOS(.v13) // Minimum platform version - ], - products: [ - .library( - name: "Libcore", - targets: ["Libcore"]), - ], - dependencies: [ - // No dependencies - ], - targets: [ - .binaryTarget( - name: "Libcore", - url: packageURL, - checksum: "d1ace700090a20b2e2567f2a29feedd136f9873149ea5b32586add5486a96b49" - ) - ] - )