diff --git a/FlowplayerSDK/Package.swift b/FlowplayerSDK/Package.swift index 4559544..11ce982 100644 --- a/FlowplayerSDK/Package.swift +++ b/FlowplayerSDK/Package.swift @@ -20,7 +20,7 @@ let package = Package( .binaryTarget( name: "FlowplayerSDK", url: "https://github.com/flowplayer/apple-sdk-releases/releases/download/\(version)/FlowplayerSDK.zip", - checksum: "8d2a99256f69155101c0520ffbe692e622b5288a91d2891cdddb0da94c7623b0" + checksum: "38dc1f789192157afdb457a5a947b8500771aea8a5395ef2d90c60c8b5889988" ), ] ) diff --git a/FlowplayerSDK/Package.swift-E b/FlowplayerSDK/Package.swift-E new file mode 100644 index 0000000..3a71be1 --- /dev/null +++ b/FlowplayerSDK/Package.swift-E @@ -0,0 +1,26 @@ +// swift-tools-version: 5.6 + +import PackageDescription + +let version = "4.0.0-rc.1" + +let package = Package( + name: "FlowplayerSDK", + platforms: [ + .iOS(.v14), + .tvOS(.v14), + ], + products: [ + .library( + name: "FlowplayerSDK", + targets: ["FlowplayerSDK"] + ), + ], + targets: [ + .binaryTarget( + name: "FlowplayerSDK", + url: "https://github.com/flowplayer/apple-sdk-releases/releases/download/\(version)/FlowplayerSDK.zip", + checksum: "400.1" + ), + ] +) diff --git a/Scripts/UpdateManifests.bash b/Scripts/UpdateManifests.bash index 9ba4d3f..53e0b87 100755 --- a/Scripts/UpdateManifests.bash +++ b/Scripts/UpdateManifests.bash @@ -17,16 +17,14 @@ echo "🗃️ Downloaded $BINARY_NAME" echo "Updaing Package.swift..." # Calculate new checksum -touch Package.swift # need for swift package compute-checksum to work -NEW_CHECKSUM=$(shasum -a 256 $BINARY_NAME) -rm Package.swift # delete it as it is not needed anymore +NEW_CHECKSUM=$(shasum -a 256 $BINARY_NAME | awk '{ print $1 }') echo "🔐 New checksum is: $NEW_CHECKSUM" # Replace version information in package manifest sed -E -i '' 's/let version = ".+"/let version = "'$NEW_VERSION\"/ FlowplayerSDK/Package.swift # Replace checksum information in package manifest -sed -E -i '' 's/checksum: ".+"/checksum: "'$NEW_CHECKSUM\"/ FlowplayerSDK/Package.swift +sed -i -E "s/checksum: \".*\"/checksum: \"$NEW_CHECKSUM\"/" FlowplayerSDK/Package.swift # print out package manifes for convenience reasons echo "📜 New Package Manifest is:"