Static link on Linux. And better document release process on OSX.
[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 SIGNER=(your gitian key, ie bluematt, sipa, etc)
28    export VERSION=0.5.0
29    cd ./gitian-builder
30
31   * Fetch and build inputs:
32    mkdir -p inputs; cd inputs/
33    wget 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.6.tar.gz' -O miniupnpc-1.6.tar.gz
34    wget 'http://www.openssl.org/source/openssl-1.0.0e.tar.gz'
35    wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
36    wget 'http://downloads.sourceforge.net/project/boost/boost/1.47.0/boost_1_47_0.tar.bz2'
37    wget 'http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz'
38    cd ..
39    ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/boost-win32.yml
40    cp build/out/boost-win32-1.47.0-gitian.zip inputs/
41    ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/qt-win32.yml
42    cp build/out/qt-win32-4.7.4-gitian.zip inputs/
43
44   * Build bitcoind and bitcoin-qt on Linux32, Linux64, and Win32:
45    ./bin/gbuild --commit bitcoin=v$VERSION ../bitcoin/contrib/gitian-descriptors/gitian.yml
46    ./bin/gsign --signer $SIGNER --release $VERSION --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian.yml
47    cd build/out
48    zip bitcoin-$VERSION-linux-gitian.zip *
49    mv bitcoin-$VERSION-linux-gitian.zip ../../
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    cd build/out
53    zip bitcoin-$VERSION-win32-gitian.zip *
54    mv bitcoin-$VERSION-win32-gitian.zip ../../
55
56   Build output expected:
57   1. linux 32-bit and 64-bit binaries + source (bitcoin-$VERSION-linux-gitian.zip)
58   2. windows 32-bit binary, installer + source (bitcoin-$VERSION-win32-gitian.zip)
59   3. Gitian signatures (in gitian.sigs/$VERSION[-win32]/(your gitian key)/
60
61 * repackage gitian builds for release as stand-alone zip/tar/installer exe
62
63   * Linux .tar.gz:
64    mkdir bitcoin-$VERSION-linux
65    cd bitcoin-$VERSION-linux
66    unzip bitcoin-$VERSION-linux-gitian.zip
67    cd ..; tar czvf bitcoin-$VERSION-linux.tar.gz bitcoin-$VERSION-linux
68
69   * Windows .zip and setup.exe:
70    mkdir bitcoin-$VERSION-win32
71    cd bitcoin-$VERSION-win32
72    unzip bitcoin-$VERSION-win32-gitian.zip
73    mv bitcoin-$VERSION-win32-setup.exe ..
74    cd ..; zip bitcoin-$VERSION-win32.zip bitcoin-$VERSION-win32
75
76
77 * perform Mac build
78   See this blog post for how Gavin set up his build environment and
79   patched macdeployqt to build the OSX release:
80     http://gavintech.blogspot.com/2011/11/deploying-bitcoin-qt-on-osx.html
81   qmake USE_SSL=1 USE_UPNP=1 bitcoin-qt.pro
82   make
83   export QTDIR=/opt/local/share/qt4  # needed to find translations/qt_*.qm files
84   contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -add-qt-tr de,es,ru -dmg -fancy contrib/macdeploy/fancy.plist  
85
86  Build output expected:
87   Bitcoin-Qt.dmg
88
89 * upload source and builds to SourceForge
90
91 * create SHA1SUMS for builds, and PGP-sign it
92
93 * update bitcoin.org version
94
95 * update forum version
96
97 * update wiki
98
99 * update wiki download links
100
101 * release gitian-signed gitian archives
102
103   * Collect enough gitian signatures to meet minimum_weight (see contrib/gitian-downloader/*-download-config)
104
105   * From a directory containing bitcoin source, gitian.sigs and gitian zips
106    export VERSION=0.5.0
107    mkdir bitcoin-$VERSION-linux-gitian; cd bitcoin-$VERSION-linux-gitian
108    unzip ../bitcoin-$VERSION-linux-gitian.zip
109    mkdir gitian
110    cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/
111    for file in `ls ../gitian.sigs/$VERSION/`; do
112      cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert ./gitian/$file-build.assert
113      cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert.sig ./gitian/$file-build.assert.sig
114    done
115    zip bitcoin-$VERSION-linux-gitian.zip *
116    cp bitcoin-$VERSION-linux-gitian.zip ../
117    cd ..
118    mkdir bitcoin-$VERSION-linux-gitian; cd bitcoin-$VERSION-linux-gitian
119    unzip ../bitcoin-$VERSION-linux-gitian.zip
120    mkdir gitian
121    cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/
122    for file in `ls ../gitian.sigs/$VERSION/`; do
123      cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert ./gitian/$file-build.assert
124      cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert.sig ./gitian/$file-build.assert.sig
125    done
126    zip bitcoin-$VERSION-linux-gitian.zip *
127    cp bitcoin-$VERSION-linux-gitian.zip ../
128
129   * Upload gitian zips to SourceForge
130
131