]> Git Repo - VerusCoin.git/blob - doc/release-process.txt
Merge pull request #2361 from L2G/font-tweak
[VerusCoin.git] / doc / release-process.txt
1 * update translations (ping tcatm on IRC for now)
2
3 * update (commit) version in sources
4   bitcoin-qt.pro
5   src/clientversion.h (change CLIENT_VERSION_IS_RELEASE to true)
6   share/setup.nsi
7   doc/README*
8   contrib/verifysfbinaries/verify.sh
9
10 * tag version in git
11
12    git tag -a v0.5.1
13
14 * write release notes.  git shortlog helps a lot:
15
16    git shortlog --no-merges v0.5.0..
17
18 * perform gitian builds
19
20   * From a directory containing the bitcoin source, gitian-builder and gitian.sigs
21    export SIGNER=(your gitian key, ie bluematt, sipa, etc)
22    export VERSION=0.5.1
23    cd ./gitian-builder
24
25   * Fetch and build inputs: (first time, or when dependency versions change)
26    mkdir -p inputs; cd inputs/
27    wget 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.6.tar.gz' -O miniupnpc-1.6.tar.gz
28    wget 'http://www.openssl.org/source/openssl-1.0.1c.tar.gz'
29    wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
30    wget 'http://zlib.net/zlib-1.2.6.tar.gz'
31    wget 'ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.5.9.tar.gz'
32    wget 'http://fukuchi.org/works/qrencode/qrencode-3.2.0.tar.bz2'
33    wget 'http://downloads.sourceforge.net/project/boost/boost/1.50.0/boost_1_50_0.tar.bz2'
34    wget 'http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.3.tar.gz'
35    cd ..
36    ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/boost-win32.yml
37    mv build/out/boost-win32-1.50.0-gitian2.zip inputs/
38    ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/qt-win32.yml
39    mv build/out/qt-win32-4.8.3-gitian-r1.zip inputs/
40    ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/deps-win32.yml
41    mv build/out/bitcoin-deps-0.0.5.zip inputs/
42
43   * Build bitcoind and bitcoin-qt on Linux32, Linux64, and Win32:
44    ./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian.yml
45    ./bin/gsign --signer $SIGNER --release ${VERSION} --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian.yml
46    pushd build/out
47    zip -r bitcoin-${VERSION}-linux-gitian.zip *
48    mv bitcoin-${VERSION}-linux-gitian.zip ../../
49    popd
50    ./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-win32.yml
51    ./bin/gsign --signer $SIGNER --release ${VERSION}-win32 --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win32.yml
52    pushd build/out
53    zip -r bitcoin-${VERSION}-win32-gitian.zip *
54    mv bitcoin-${VERSION}-win32-gitian.zip ../../
55    popd
56
57   Build output expected:
58   1. linux 32-bit and 64-bit binaries + source (bitcoin-${VERSION}-linux-gitian.zip)
59   2. windows 32-bit binary, installer + source (bitcoin-${VERSION}-win32-gitian.zip)
60   3. Gitian signatures (in gitian.sigs/${VERSION}[-win32]/(your gitian key)/
61
62 * repackage gitian builds for release as stand-alone zip/tar/installer exe
63
64   * Linux .tar.gz:
65    unzip bitcoin-${VERSION}-linux-gitian.zip -d bitcoin-${VERSION}-linux
66    tar czvf bitcoin-${VERSION}-linux.tar.gz bitcoin-${VERSION}-linux
67    rm -rf bitcoin-${VERSION}-linux
68
69   * Windows .zip and setup.exe:
70    unzip bitcoin-${VERSION}-win32-gitian.zip -d bitcoin-${VERSION}-win32
71    mv bitcoin-${VERSION}-win32/bitcoin-*-setup.exe .
72    zip -r bitcoin-${VERSION}-win32.zip bitcoin-${VERSION}-win32
73    rm -rf bitcoin-${VERSION}-win32
74
75 * perform Mac build
76   OSX binaries are created by Gavin Andresen on a 32-bit, OSX 10.6 machine.
77
78   qmake RELEASE=1 USE_UPNP=1 USE_QRCODE=1 bitcoin-qt.pro
79   make
80   export QTDIR=/opt/local/share/qt4  # needed to find translations/qt_*.qm files
81   T=$(contrib/qt_translations.py $QTDIR/translations src/qt/locale)
82   python2.7 contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -add-qt-tr $T -dmg -fancy contrib/macdeploy/fancy.plist
83
84  Build output expected:
85   Bitcoin-Qt.dmg
86
87 * Code-sign Windows -setup.exe (in a Windows virtual machine) and
88   OSX Bitcoin-Qt.app (Note: only Gavin has the code-signing keys currently)
89
90 * upload builds to SourceForge
91
92 * create SHA256SUMS for builds, and PGP-sign it
93
94 * update bitcoin.org version
95   make sure all OS download links go to the right versions
96
97 * update forum version
98
99 * update wiki download links
100
101 * update wiki changelog: https://en.bitcoin.it/wiki/Changelog
102
103 * Commit your signature to gitian.sigs:
104   pushd gitian.sigs
105   git add ${VERSION}/${SIGNER}
106   git add ${VERSION}-win32/${SIGNER}
107   git commit -a
108   git push  # Assuming you can push to the gitian.sigs tree
109   popd
110
111 -------------------------------------------------------------------------
112
113 * After 3 or more people have gitian-built, repackage gitian-signed zips:
114
115   * From a directory containing bitcoin source, gitian.sigs and gitian zips
116    export VERSION=0.5.1
117    mkdir bitcoin-${VERSION}-linux-gitian
118    pushd bitcoin-${VERSION}-linux-gitian
119    unzip ../bitcoin-${VERSION}-linux-gitian.zip
120    mkdir gitian
121    cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/
122    for signer in $(ls ../gitian.sigs/${VERSION}/); do
123      cp ../gitian.sigs/${VERSION}/${signer}/bitcoin-build.assert ./gitian/${signer}-build.assert
124      cp ../gitian.sigs/${VERSION}/${signer}/bitcoin-build.assert.sig ./gitian/${signer}-build.assert.sig
125    done
126    zip -r bitcoin-${VERSION}-linux-gitian.zip *
127    cp bitcoin-${VERSION}-linux-gitian.zip ../
128    popd
129    mkdir bitcoin-${VERSION}-win32-gitian
130    pushd bitcoin-${VERSION}-win32-gitian
131    unzip ../bitcoin-${VERSION}-win32-gitian.zip
132    mkdir gitian
133    cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/
134    for signer in $(ls ../gitian.sigs/${VERSION}-win32/); do
135      cp ../gitian.sigs/${VERSION}-win32/${signer}/bitcoin-build.assert ./gitian/${signer}-build.assert
136      cp ../gitian.sigs/${VERSION}-win32/${signer}/bitcoin-build.assert.sig ./gitian/${signer}-build.assert.sig
137    done
138    zip -r bitcoin-${VERSION}-win32-gitian.zip *
139    cp bitcoin-${VERSION}-win32-gitian.zip ../
140    popd
141
142   * Upload gitian zips to SourceForge
This page took 0.03296 seconds and 4 git commands to generate.