Create SwiftPM binaries for both dynamic/static
This commit is contained in:
parent
37043e7c92
commit
e653c77faa
|
@ -1,12 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if [ $# == 0 ]; then
|
||||||
|
echo "Usage: `basename $0` static|dynamic"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
VERSION="1.1.1l"
|
VERSION="1.1.1l"
|
||||||
TARGETS="ios-sim-cross-x86_64 ios-sim-cross-arm64 ios64-cross-arm64 ios64-cross-arm64e macos64-x86_64 macos64-arm64 mac-catalyst-x86_64 mac-catalyst-arm64"
|
TARGETS="ios-sim-cross-x86_64 ios-sim-cross-arm64 ios64-cross-arm64 ios64-cross-arm64e macos64-x86_64 macos64-arm64 mac-catalyst-x86_64 mac-catalyst-arm64"
|
||||||
FRAMEWORK="openssl.xcframework"
|
FRAMEWORK="openssl.xcframework"
|
||||||
FRAMEWORK_ZIP="openssl.xcframework.zip"
|
FRAMEWORK_ZIP="openssl.xcframework.zip"
|
||||||
FRAMEWORK_DIR="swiftpm/$VERSION"
|
FRAMEWORK_DIR="swiftpm/$VERSION"
|
||||||
./build-libssl.sh --version="$VERSION" --targets="$TARGETS"
|
./create-openssl-framework.sh $1
|
||||||
./create-openssl-framework.sh dynamic
|
|
||||||
( cd frameworks && zip -yr $FRAMEWORK_ZIP $FRAMEWORK )
|
( cd frameworks && zip -yr $FRAMEWORK_ZIP $FRAMEWORK )
|
||||||
mkdir -p $FRAMEWORK_DIR
|
mkdir -p $FRAMEWORK_DIR/$1
|
||||||
mv frameworks/$FRAMEWORK_ZIP $FRAMEWORK_DIR
|
mv frameworks/$FRAMEWORK_ZIP $FRAMEWORK_DIR/$1
|
||||||
swift package compute-checksum $FRAMEWORK_DIR/$FRAMEWORK_ZIP
|
swift package compute-checksum $FRAMEWORK_DIR/$1/$FRAMEWORK_ZIP
|
||||||
|
|
Loading…
Reference in New Issue