@@ -7,6 +7,15 @@ This document describes the steps needed to release a new version of LNC binarie
7
7
1 . Android Studio with Android SDK (API level 16 or newer)
8
8
2 . Xcode (latest version)
9
9
3 . Go v1.21.0 or newer
10
+ 4 . gomobile (https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile )
11
+ 5 . javac version 1.7 or higher (Included in Java Development Kit 7+)
12
+
13
+ #### Android Studio SDK tools requirements
14
+
15
+ Ensure that NDK is installed for the Android Studio SDK tools.
16
+ To install NDK in Android Studio, navigate to Preferences (or Settings) |
17
+ Appearance & Behavior | System Settings | Android SDK. Navigate to the SDK Tools
18
+ tab, mark ` NDK (Side by side) ` and then click the "Apply" button.
10
19
11
20
### Build Release Binaries
12
21
@@ -26,6 +35,14 @@ When this completes, a `build` dir will be created with four files:
26
35
27
36
### Sign the manifest and rename the signature file
28
37
38
+ For the signing commands below to work without modifying the path, you first
39
+ need navigate ` build ` dir that was created with the ` make release ` command
40
+ above.
41
+
42
+ ``` sh
43
+ $ cd build
44
+ ```
45
+
29
46
#### Sign the manifest file using your PGP key.
30
47
31
48
- Replace ` {PGP_EMAIL} ` with your email address associated with your PGP key
@@ -35,8 +52,18 @@ When this completes, a `build` dir will be created with four files:
35
52
$ gpg --default-key {PGP_EMAIL} --output manifest-{GITHUB_USERNAME}-vX.Y.Z-alpha.sig --detach-sign manifest-vX.Y.Z-alpha.txt
36
53
```
37
54
55
+ #### Create an Open Timestamp for the signed manifest
56
+
57
+ Go to https://opentimestamps.org . Upload the newly generated
58
+ ` manifest-{GITHUB_USERNAME}-vX.Y.Z-alpha.sig ` signature file, and download the
59
+ resulting ` ots ` file.
60
+
38
61
### Create a tag and push to Github
39
62
63
+ First, double check that the release you just created, was based on the latest
64
+ upstream master branch commit. Also verify that you are currently based on the
65
+ on the latest master branch commit when creating any tags!
66
+
40
67
Using the ` -s ` option signs the tag with your PGP key
41
68
42
69
``` sh
@@ -52,13 +79,14 @@ On Github create a new release. Select the tag you just pushed, then click the
52
79
Take the rest of the content from a previous release. Be sure to update the
53
80
version number and update the verification examples to use your own PGP key.
54
81
55
- In the assets, include these five files:
82
+ In the assets, include these six files:
56
83
57
84
- lnc-vX.Y.Z-alpha.wasm
58
85
- lnc-vX.Y.Z-alpha-android.zip
59
86
- lnc-vX.Y.Z-alpha-ios.zip
60
87
- manifest-vX.Y.Z-alpha.txt
61
88
- manifest-{GITHUB_USERNAME}-vX.Y.Z-alpha.sig
89
+ - manifest-{GITHUB_USERNAME}-vX.Y.Z-alpha.sig.ots
62
90
63
91
### Deploy the WASM binary to CDN
64
92
0 commit comments