Skip to content

Commit 5898308

Browse files
authored
docs and specs updates (#24)
1 parent afd16d4 commit 5898308

File tree

6 files changed

+18
-15
lines changed

6 files changed

+18
-15
lines changed

RELEASING.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@ How to update to newer OpenSSL version, build, and publish a release.
3636

3737
5. **Update SPM package settings**
3838

39-
In the [`Package.swift`](Package.swift) file
40-
update binary framework link with the upcoming version (semver format)
41-
https://github.com/cossacklabs/openssl-apple/releases/download/1.1.10701/openssl-static-xcframework.zip
42-
43-
Also, update xcframework checksum.
44-
45-
```shell
46-
swift package compute-checksum output/openssl-static-xcframework.zip
47-
```
39+
Update [`Package.swift`](Package.swift) file with the new URL of the binary framework and its checksum:
40+
41+
```swift
42+
.binaryTarget(name: "openssl",
43+
// update version in URL path
44+
url:"https://github.com/cossacklabs/openssl-apple/releases/download/1.1.10701/openssl-static-xcframework.zip",
45+
// Run from package directory:
46+
// swift package compute-checksum output/openssl-static-xcframework.zip
47+
checksum: "77b9a36297a2cade7bb6db5282570740a2af7b1e5083f126f46ca2671b14d73e"),
48+
```
4849

4950
6. **Commit, tag, push the release.**
5051

carthage/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ OpenSSL versions are translated to Carthage versions by renumbering like this:
2222
| 1.1.1g | 1.1.107 |
2323
| 1.1.1h | 1.1.10801 |
2424
| 1.1.1h | 1.1.10802 | (no changes in OpenSSL, added arm64)
25+
| 1.1.1h | 1.1.10803 | (no changes in OpenSSL, XCF support)
26+
| 1.1.1k | 1.1.11101 | (XCF-only)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"1.1.11101": "https://github.com/cossacklabs/openssl-apple/releases/download/v1.1.11101/openssl-dynamic-xcframework.zip",
3-
"1.1.10803": "https://github.com/cossacklabs/openssl-apple/releases/download/v1.1.10803/openssl-dynamic-xcframework.zip",
2+
"1.1.11101": "https://github.com/cossacklabs/openssl-apple/releases/download/1.1.11101/openssl-dynamic-xcframework.zip",
3+
"1.1.10803": "https://github.com/cossacklabs/openssl-apple/releases/download/1.1.10803/openssl-dynamic-xcframework.zip",
44
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"1.1.11101": "https://github.com/cossacklabs/openssl-apple/releases/download/v1.1.11101/openssl-static-xcframework.zip",
3-
"1.1.10803": "https://github.com/cossacklabs/openssl-apple/releases/download/v1.1.10803/openssl-static-xcframework.zip",
2+
"1.1.11101": "https://github.com/cossacklabs/openssl-apple/releases/download/1.1.11101/openssl-static-xcframework.zip",
3+
"1.1.10803": "https://github.com/cossacklabs/openssl-apple/releases/download/1.1.10803/openssl-static-xcframework.zip",
44
}

cocoapods/CLOpenSSL.podspec.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Pod::Spec.new do |s|
4545

4646
# Source code location. Actually, this is the script that builds OpenSSL
4747
# after downloading its source tarball from the official site.
48-
s.source = { :git => "#{github_repo}.git", :tag => "v#{openssl_version}" }
48+
s.source = { :git => "#{github_repo}.git", :tag => "#{openssl_version}" }
4949
s.license = {
5050
:type => "OpenSSL/SSLeay",
5151
:text => <<~EOF

scripts/update-specs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ do
5151
else
5252
(
5353
head -1 "$spec" 2> /dev/null || echo "{"
54-
echo " \"$version\": \"$GITHUB_REPO/releases/download/v$version/$package\","
54+
echo " \"$version\": \"$GITHUB_REPO/releases/download/$version/$package\","
5555
tail +2 "$spec" 2> /dev/null || echo "}"
5656
) > "$OUTPUT/tmp.spec"
5757
mv "$OUTPUT/tmp.spec" "$spec"

0 commit comments

Comments
 (0)