@@ -41,6 +41,7 @@ Check out the source code in the following directory hierarchy.
41
41
pushd ./bitcoin
42
42
export SIGNER=(your Gitian key, ie bluematt, sipa, etc)
43
43
export VERSION=(new version, e.g. 0.8.0)
44
+ git fetch
44
45
git checkout v${VERSION}
45
46
popd
46
47
@@ -83,25 +84,16 @@ NOTE: Offline builds must use the --url flag to ensure Gitian fetches only from
83
84
```
84
85
The gbuild invocations below <b >DO NOT DO THIS</b > by default.
85
86
86
- ###Build ( and optionally verify) Bitcoin Core for Linux, Windows, and OS X:
87
+ ###Build and Sign Bitcoin Core for Linux, Windows, and OS X:
87
88
88
89
./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml
89
90
./bin/gsign --signer $SIGNER --release ${VERSION}-linux --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml
90
- ./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-linux ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml
91
- mv build/out/bitcoin-*.tar.gz build/out/src/bitcoin-*.tar.gz ../
92
91
93
92
./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-win.yml
94
93
./bin/gsign --signer $SIGNER --release ${VERSION}-win-unsigned --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win.yml
95
- ./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-win-unsigned ../bitcoin/contrib/gitian-descriptors/gitian-win.yml
96
- mv build/out/bitcoin-*-win-unsigned.tar.gz inputs/bitcoin-win-unsigned.tar.gz
97
- mv build/out/bitcoin-*.zip build/out/bitcoin-*.exe ../
98
94
99
95
./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-osx.yml
100
96
./bin/gsign --signer $SIGNER --release ${VERSION}-osx-unsigned --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-osx.yml
101
- ./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-osx-unsigned ../bitcoin/contrib/gitian-descriptors/gitian-osx.yml
102
- mv build/out/bitcoin-*-osx-unsigned.tar.gz inputs/bitcoin-osx-unsigned.tar.gz
103
- mv build/out/bitcoin-*.tar.gz build/out/bitcoin-*.dmg ../
104
- popd
105
97
106
98
Build output expected:
107
99
@@ -111,6 +103,27 @@ The gbuild invocations below <b>DO NOT DO THIS</b> by default.
111
103
4 . OS X unsigned installer and dist tarball (bitcoin-${VERSION}-osx-unsigned.dmg, bitcoin-${VERSION}-osx64.tar.gz)
112
104
5 . Gitian signatures (in gitian.sigs/${VERSION}-<linux|{win,osx}-unsigned>/(your Gitian key)/
113
105
106
+ ###Verify other gitian builders signatures to your own. (Optional)
107
+
108
+ Add other gitian builders keys to your gpg keyring
109
+
110
+ gpg --import ../bitcoin/contrib/gitian-downloader/*.pgp
111
+
112
+ Verify the signatures
113
+
114
+ ./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-linux ../bitcoin/contrib/gitian-descriptors/gitian-linux.yml
115
+ ./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-win-unsigned ../bitcoin/contrib/gitian-descriptors/gitian-win.yml
116
+ ./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-osx-unsigned ../bitcoin/contrib/gitian-descriptors/gitian-osx.yml
117
+
118
+ ###Move the outputs to the correct directory
119
+
120
+ mv build/out/bitcoin-*.tar.gz build/out/src/bitcoin-*.tar.gz ../
121
+ mv build/out/bitcoin-*-win-unsigned.tar.gz inputs/bitcoin-win-unsigned.tar.gz
122
+ mv build/out/bitcoin-*.zip build/out/bitcoin-*.exe ../
123
+ mv build/out/bitcoin-*-osx-unsigned.tar.gz inputs/bitcoin-osx-unsigned.tar.gz
124
+ mv build/out/bitcoin-*.tar.gz build/out/bitcoin-*.dmg ../
125
+ popd
126
+
114
127
###Next steps:
115
128
116
129
Commit your signature to gitian.sigs:
0 commit comments