@@ -24,6 +24,8 @@ How to update to newer OpenSSL version, build, and publish a release.
24
24
25
25
4 . ** Build OpenSSL.**
26
26
27
+ To build from scratch - remove output folder.
28
+
27
29
``` shell
28
30
make
29
31
```
@@ -32,37 +34,52 @@ How to update to newer OpenSSL version, build, and publish a release.
32
34
Not only it builds the library, this also packages it,
33
35
and updates the project specs.
34
36
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.
36
52
37
53
``` shell
38
54
git add carthage
55
+ git add Package.swift
39
56
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
41
58
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
43
60
```
44
61
45
62
Make will remind you how to do this.
46
63
(Use the correct versions there.)
47
64
Take care to make signed commits and tags, this is important for vanity.
48
65
49
66
Congratulations!
50
- You have just published a broken Carthage package.
67
+ You have just published broken Carthage and SPM packages :)
51
68
52
- 6 . ** Publish GitHub release with binary framework files.**
69
+ 7 . ** Publish GitHub release with binary framework files.**
53
70
54
71
Go to GitHub release page for the tag:
55
72
56
- https://github.com/cossacklabs/openssl-apple/releases/tag/v1 .1.107
73
+ https://github.com/cossacklabs/openssl-apple/releases/tag/1 .1.107
57
74
58
75
press ** Edit tag** and upload ` *.zip ` packages from ` output ` directory.
59
76
60
77
Also, describe the release, press the ** Publish release** when done.
61
78
62
79
Congratulations!
63
- You should have fixed the Carthage package with this.
80
+ You should have fixed the Carthage and SPM packages with this.
64
81
65
- 7 . ** Publish podspec.**
82
+ 8 . ** Publish podspec.**
66
83
67
84
``` shell
68
85
pod trunk push cocoapods/CLOpenSSL.podspec
0 commit comments