Update release process instructions
[novacoin.git] / doc / release-process.txt
1 * update (commit) version in sources
2   bitcoin-qt.pro
3   src/serialize.h
4   share/setup.nsi
5
6 * tag version in git
7
8    git tag -a v0.5.1
9
10 * write release notes.  git shortlog helps a lot:
11
12    git shortlog --no-merges v0.5.0..
13
14 * perform gitian builds
15
16   * From a directory containing the bitcoin source, gitian-builder and gitian.sigs
17    export SIGNER=(your gitian key, ie bluematt, sipa, etc)
18    export VERSION=0.5.1
19    cd ./gitian-builder
20
21   * Fetch and build inputs:
22    mkdir -p inputs; cd inputs/
23    wget 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.6.tar.gz' -O miniupnpc-1.6.tar.gz
24    wget 'http://www.openssl.org/source/openssl-1.0.0e.tar.gz'
25    wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
26    wget 'http://downloads.sourceforge.net/project/boost/boost/1.47.0/boost_1_47_0.tar.bz2'
27    wget 'http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz'
28    cd ..
29    ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/boost-win32.yml
30    cp build/out/boost-win32-1.47.0-gitian.zip inputs/
31    ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/qt-win32.yml
32    cp build/out/qt-win32-4.7.4-gitian.zip inputs/
33
34   * Build bitcoind and bitcoin-qt on Linux32, Linux64, and Win32:
35    ./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian.yml
36    ./bin/gsign --signer $SIGNER --release ${VERSION} --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian.yml
37    pushd build/out
38    zip -r bitcoin-${VERSION}-linux-gitian.zip *
39    mv bitcoin-${VERSION}-linux-gitian.zip ../../
40    popd
41    ./bin/gbuild --commit bitcoin=v${VERSION} ../bitcoin/contrib/gitian-descriptors/gitian-win32.yml
42    ./bin/gsign --signer $SIGNER --release ${VERSION}-win32 --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win32.yml
43    pushd build/out
44    zip -r bitcoin-${VERSION}-win32-gitian.zip *
45    mv bitcoin-${VERSION}-win32-gitian.zip ../../
46    popd
47
48   Build output expected:
49   1. linux 32-bit and 64-bit binaries + source (bitcoin-${VERSION}-linux-gitian.zip)
50   2. windows 32-bit binary, installer + source (bitcoin-${VERSION}-win32-gitian.zip)
51   3. Gitian signatures (in gitian.sigs/${VERSION}[-win32]/(your gitian key)/
52
53 * repackage gitian builds for release as stand-alone zip/tar/installer exe
54
55   * Linux .tar.gz:
56    unzip bitcoin-${VERSION}-linux-gitian.zip -d bitcoin-${VERSION}-linux
57    tar czvf bitcoin-${VERSION}-linux.tar.gz bitcoin-${VERSION}-linux
58    rm -rf bitcoin-${VERSION}-linux
59
60   * Windows .zip and setup.exe:
61    unzip bitcoin-${VERSION}-win32-gitian.zip -d bitcoin-${VERSION}-win32
62    mv bitcoin-${VERSION}-win32/bitcoin-*-setup.exe .
63    zip -r bitcoin-${VERSION}-win32.zip bitcoin-${VERSION}-win32
64    rm -rf bitcoin-${VERSION}-win32
65
66 * perform Mac build
67   See this blog post for how Gavin set up his build environment and
68   patched macdeployqt to build the OSX release:
69     http://gavintech.blogspot.com/2011/11/deploying-bitcoin-qt-on-osx.html
70   qmake USE_SSL=1 USE_UPNP=1 bitcoin-qt.pro
71   make
72   export QTDIR=/opt/local/share/qt4  # needed to find translations/qt_*.qm files
73   T=$(contrib/qt_translations.py $QTDIR/translations src/qt/locale)
74   contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -add-qt-tr $T -dmg -fancy contrib/macdeploy/fancy.plist  
75
76  Build output expected:
77   Bitcoin-Qt.dmg
78
79 * upload source and builds to SourceForge
80
81 * create SHA1SUMS for builds, and PGP-sign it
82
83 * update bitcoin.org version
84
85 * update forum version
86
87 * update wiki download links
88
89 * Commit your signature to gitian.sigs:
90   pushd gitian.sigs
91   git add ${VERSION}/${SIGNER}
92   git add ${VERSION}-win32/${SIGNER}
93   git commit -a
94   git push  # Assuming you can push to the gitian.sigs tree
95   popd
96
97 -------------------------------------------------------------------------
98
99 * After 3 or more people have gitian-built, repackage gitian-signed zips:
100
101   * From a directory containing bitcoin source, gitian.sigs and gitian zips
102    export VERSION=0.5.1
103    mkdir bitcoin-${VERSION}-linux-gitian
104    pushd bitcoin-${VERSION}-linux-gitian
105    unzip ../bitcoin-${VERSION}-linux-gitian.zip
106    mkdir gitian
107    cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/
108    for signer in $(ls ../gitian.sigs/${VERSION}/); do
109      cp ../gitian.sigs/${VERSION}/${signer}/bitcoin-build.assert ./gitian/${signer}-build.assert
110      cp ../gitian.sigs/${VERSION}/${signer}/bitcoin-build.assert.sig ./gitian/${signer}-build.assert.sig
111    done
112    zip -r bitcoin-${VERSION}-linux-gitian.zip *
113    cp bitcoin-${VERSION}-linux-gitian.zip ../
114    popd
115    mkdir bitcoin-${VERSION}-win32-gitian
116    pushd bitcoin-${VERSION}-win32-gitian
117    unzip ../bitcoin-${VERSION}-win32-gitian.zip
118    mkdir gitian
119    cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/
120    for signer in $(ls ../gitian.sigs/${VERSION}-win32/); do
121      cp ../gitian.sigs/${VERSION}-win32/${signer}/bitcoin-build.assert ./gitian/${signer}-build.assert
122      cp ../gitian.sigs/${VERSION}-win32/${signer}/bitcoin-build.assert.sig ./gitian/${signer}-build.assert.sig
123    done
124    zip -r bitcoin-${VERSION}-win32-gitian.zip *
125    cp bitcoin-${VERSION}-win32-gitian.zip ../
126    popd
127
128   * Upload gitian zips to SourceForge