Fix symlinks in zipped xcframework

This commit is contained in:
Davide De Rosa 2021-10-26 12:08:44 +02:00
parent 2ed7369283
commit 66b3133930
2 changed files with 2 additions and 2 deletions

View File

@ -21,6 +21,6 @@ let package = Package(
.binaryTarget( .binaryTarget(
name: "openssl", name: "openssl",
url: "https://github.com/keeshux/openssl-apple/releases/download/openssl-1.1.1l/openssl.xcframework.zip", url: "https://github.com/keeshux/openssl-apple/releases/download/openssl-1.1.1l/openssl.xcframework.zip",
checksum: "18628fddadcac81c96e5824d62991b93172f58c7539cebb4ddba4df52b99aade") checksum: "9980b23b7f84841dd3f3fa8e9b4773b133cccff680d2ce466f2f61ba159ddeee")
] ]
) )

View File

@ -6,7 +6,7 @@ FRAMEWORK_ZIP="openssl.xcframework.zip"
FRAMEWORK_DIR="swiftpm/$VERSION" FRAMEWORK_DIR="swiftpm/$VERSION"
./build-libssl.sh --version="$VERSION" --targets="$TARGETS" ./build-libssl.sh --version="$VERSION" --targets="$TARGETS"
./create-openssl-framework.sh dynamic ./create-openssl-framework.sh dynamic
( cd frameworks && zip -r $FRAMEWORK_ZIP $FRAMEWORK ) ( cd frameworks && zip -yr $FRAMEWORK_ZIP $FRAMEWORK )
mkdir -p $FRAMEWORK_DIR mkdir -p $FRAMEWORK_DIR
mv frameworks/$FRAMEWORK_ZIP $FRAMEWORK_DIR mv frameworks/$FRAMEWORK_ZIP $FRAMEWORK_DIR
swift package compute-checksum $FRAMEWORK_DIR/$FRAMEWORK_ZIP swift package compute-checksum $FRAMEWORK_DIR/$FRAMEWORK_ZIP