@@ -24,6 +24,8 @@ How to update to newer OpenSSL version, build, and publish a release.
2424
25254 . ** Build OpenSSL.**
2626
27+ To build from scratch - remove output folder.
28+
2729 ``` shell
2830 make
2931 ```
@@ -32,37 +34,52 @@ How to update to newer OpenSSL version, build, and publish a release.
3234 Not only it builds the library, this also packages it,
3335 and updates the project specs.
3436
35- 5 . ** Commit, tag, push the release.**
37+ 5 . ** Update SPM package settings**
38+
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+ ```
48+
49+ 6 . ** Commit, tag, push the release.**
50+
51+ Tag should be in a semver format.
3652
3753 ``` shell
3854 git add carthage
55+ git add Package.swift
3956 git commit -S -e -m " OpenSSL 1.1.1g"
40- git tag -s -e -m " OpenSSL 1.1.1g" v1 .1.10701
57+ git tag -s -e -m " OpenSSL 1.1.1g" 1 .1.10701
4158 git push origin cossacklabs # Push the branch
42- git push origin v1 .1.10701 # Push the tag
59+ git push origin 1 .1.10701 # Push the tag
4360 ```
4461
4562 Make will remind you how to do this.
4663 (Use the correct versions there.)
4764 Take care to make signed commits and tags, this is important for vanity.
4865
4966 Congratulations!
50- You have just published a broken Carthage package.
67+ You have just published broken Carthage and SPM packages :)
5168
52- 6 . ** Publish GitHub release with binary framework files.**
69+ 7 . ** Publish GitHub release with binary framework files.**
5370
5471 Go to GitHub release page for the tag:
5572
56- https://github.com/cossacklabs/openssl-apple/releases/tag/v1 .1.107
73+ https://github.com/cossacklabs/openssl-apple/releases/tag/1 .1.107
5774
5875 press ** Edit tag** and upload ` *.zip ` packages from ` output ` directory.
5976
6077 Also, describe the release, press the ** Publish release** when done.
6178
6279 Congratulations!
63- You should have fixed the Carthage package with this.
80+ You should have fixed the Carthage and SPM packages with this.
6481
65- 7 . ** Publish podspec.**
82+ 8 . ** Publish podspec.**
6683
6784 ``` shell
6885 pod trunk push cocoapods/CLOpenSSL.podspec
0 commit comments