Mac releases use macdeployqtplus
[novacoin.git] / doc / release-process.txt
1 * update (commit) version in sources
2   src/serialize.h
3   share/setup.nsi
4
5 * update (commit) version in OSX app bundle
6  contrib/Bitcoin.app/Contents/Info.plist
7
8   * CFBundleShortVersionString should have value like 0.5.0
9   * CFBundleVersion should have value like 500
10
11 * tag version in git
12
13    git tag -a v0.5.0
14
15 * write release notes.  git shortlog helps a lot:
16
17    git shortlog --no-merges v0.4.0..
18
19 * create source-only archive
20
21    git archive --format=tar --prefix=bitcoin-0.5.0/ HEAD | \
22         gzip -9c > ~/tmp/bitcoin-0.5.0-src.tar.gz 
23
24 * perform gitian builds
25
26   * From a directory containing the bitcoin source, gitian-builder and gitian.sigs
27    export VERSION=0.5.0
28    cd ./gitian-builder
29
30   * Fetch and build inputs:
31    mkdir -p inputs; cd inputs/
32    wget 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.6.tar.gz' -O miniupnpc-1.6.tar.gz
33    wget 'http://www.openssl.org/source/openssl-1.0.0e.tar.gz'
34    wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
35    wget 'http://downloads.sourceforge.net/project/boost/boost/1.47.0/boost_1_47_0.tar.bz2'
36    wget 'http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz'
37    cd ..
38    ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/boost-win32.yml
39    cp build/out/boost-win32-1.47.0-gitian.zip inputs/
40    ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/qt-win32.yml
41    cp build/out/qt-win32-4.7.4-gitian.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 (your gitian key, ie bluematt, sipa, etc) --release $VERSION --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian.yml
46    cd build/out
47    zip bitcoin-$VERSION-linux-gitian.zip *
48    mv bitcoin-$VERSION-linux-gitian.zip ../../
49    ./bin/gbuild --commit bitcoin=v$VERSION ../bitcoin/contrib/gitian-descriptors/gitian-win32.yml
50    ./bin/gsign --signer (your gitian key, ie bluematt, sipa, etc) --release $VERSION-win32 --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win32.yml
51    cd build/out
52    zip bitcoin-$VERSION-win32-gitian.zip *
53    mv bitcoin-$VERSION-win32-gitian.zip ../../
54
55   Build output expected:
56   1. linux 32-bit and 64-bit binaries + source (bitcoin-$VERSION-linux-gitian.zip)
57   2. windows 32-bit binary, installer + source (bitcoin-$VERSION-win32-gitian.zip)
58   3. Gitian signatures (in gitian.sigs/$VERSION[-win32]/(your gitian key)/
59
60 * repackage gitian builds for release as stand-alone zip/tar/installer exe
61
62   * Linux .tar.gz:
63    mkdir bitcoin-$VERSION-linux
64    cd bitcoin-$VERSION-linux
65    unzip bitcoin-$VERSION-linux-gitian.zip
66    cd ..; tar czvf bitcoin-$VERSION-linux.tar.gz bitcoin-$VERSION-linux
67
68   * Windows .zip and setup.exe:
69    mkdir bitcoin-$VERSION-win32
70    cd bitcoin-$VERSION-win32
71    unzip bitcoin-$VERSION-win32-gitian.zip
72    mv bitcoin-$VERSION-win32-setup.exe ..
73    cd ..; zip bitcoin-$VERSION-win32.zip bitcoin-$VERSION-win32
74
75
76 * perform Mac build
77   qmake USE_SSL=1 USE_UPNP=1 bitcoin-qt.pro
78   make
79   export QTDIR=/opt/local/share/qt4
80   contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -add-qt-tr de,ru -dmg -fancy contrib/macdeploy/fancy.plist  
81
82  Build output expected:
83   Bitcoin-Qt.dmg
84
85 * upload source and builds to SourceForge
86
87 * create SHA1SUMS for builds, and PGP-sign it
88
89 * update bitcoin.org version
90
91 * update forum version
92
93 * update wiki
94
95 * update wiki download links
96
97 * release gitian-signed gitian archives
98
99   * Collect enough gitian signatures to meet minimum_weight (see contrib/gitian-downloader/*-download-config)
100
101   * From a directory containing bitcoin source, gitian.sigs and gitian zips
102    export VERSION=0.5.0
103    mkdir bitcoin-$VERSION-linux-gitian; cd bitcoin-$VERSION-linux-gitian
104    unzip ../bitcoin-$VERSION-linux-gitian.zip
105    mkdir gitian
106    cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/
107    for file in `ls ../gitian.sigs/$VERSION/`; do
108      cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert ./gitian/$file-build.assert
109      cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert.sig ./gitian/$file-build.assert.sig
110    done
111    zip bitcoin-$VERSION-linux-gitian.zip *
112    cp bitcoin-$VERSION-linux-gitian.zip ../
113    cd ..
114    mkdir bitcoin-$VERSION-linux-gitian; cd bitcoin-$VERSION-linux-gitian
115    unzip ../bitcoin-$VERSION-linux-gitian.zip
116    mkdir gitian
117    cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/
118    for file in `ls ../gitian.sigs/$VERSION/`; do
119      cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert ./gitian/$file-build.assert
120      cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert.sig ./gitian/$file-build.assert.sig
121    done
122    zip bitcoin-$VERSION-linux-gitian.zip *
123    cp bitcoin-$VERSION-linux-gitian.zip ../
124
125   * Upload gitian zips to SourceForge
126
127