Skip to content

Commit

Permalink
Merge pull request #13 from flowplayer/create-pull-request/patch
Browse files Browse the repository at this point in the history
[Release] Confirm New Version
  • Loading branch information
rashadatjou committed Aug 22, 2023
2 parents e0a0eac + 558250e commit 749c8b0
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 8 deletions.
4 changes: 2 additions & 2 deletions FlowplayerSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'json'

VERSION = "4.0.0-rc"
SOURCE_URL = "https://github.com/flowplayer/apple-sdk-releases/releases/download/#{version}/FlowplayerSDK.zip"
VERSION = "4.0.0-rc.1"
SOURCE_URL = "https://github.com/flowplayer/apple-sdk-releases/releases/download/#{VERSION}/FlowplayerSDK.zip"

Pod::Spec.new do |spec|

Expand Down
4 changes: 2 additions & 2 deletions FlowplayerSDK/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import PackageDescription

let version = "4.0.0-rc"
let version = "4.0.0-rc.1"

let package = Package(
name: "FlowplayerSDK",
Expand All @@ -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"
),
]
)
26 changes: 26 additions & 0 deletions FlowplayerSDK/Package.swift-E
Original file line number Diff line number Diff line change
@@ -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"
),
]
)
6 changes: 2 additions & 4 deletions Scripts/UpdateManifests.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down

0 comments on commit 749c8b0

Please sign in to comment.