You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

release-process.txt 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. * update (commit) version in sources
  2. src/serialize.h
  3. share/setup.nsi
  4. * update (commit) version in OSX app bundle
  5. contrib/Bitcoin.app/Contents/Info.plist
  6. * CFBundleShortVersionString should have value like 0.5.0
  7. * CFBundleVersion should have value like 500
  8. * tag version in git
  9. git tag -a v0.5.0
  10. * write release notes. git shortlog helps a lot:
  11. git shortlog --no-merges v0.4.0..
  12. * create source-only archive
  13. git archive --format=tar --prefix=bitcoin-0.5.0/ HEAD | \
  14. gzip -9c > ~/tmp/bitcoin-0.5.0-src.tar.gz
  15. * perform gitian builds
  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.0
  19. cd ./gitian-builder
  20. * Fetch and build inputs:
  21. mkdir -p inputs; cd inputs/
  22. wget 'http://miniupnp.free.fr/files/download.php?file=miniupnpc-1.6.tar.gz' -O miniupnpc-1.6.tar.gz
  23. wget 'http://www.openssl.org/source/openssl-1.0.0e.tar.gz'
  24. wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
  25. wget 'http://downloads.sourceforge.net/project/boost/boost/1.47.0/boost_1_47_0.tar.bz2'
  26. wget 'http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz'
  27. cd ..
  28. ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/boost-win32.yml
  29. cp build/out/boost-win32-1.47.0-gitian.zip inputs/
  30. ./bin/gbuild ../bitcoin/contrib/gitian-descriptors/qt-win32.yml
  31. cp build/out/qt-win32-4.7.4-gitian.zip inputs/
  32. * Build bitcoind and bitcoin-qt on Linux32, Linux64, and Win32:
  33. ./bin/gbuild --commit bitcoin=v$VERSION ../bitcoin/contrib/gitian-descriptors/gitian.yml
  34. ./bin/gsign --signer $SIGNER --release $VERSION --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian.yml
  35. pushd build/out
  36. zip -r bitcoin-$VERSION-linux-gitian.zip *
  37. mv bitcoin-$VERSION-linux-gitian.zip ../../
  38. popd
  39. ./bin/gbuild --commit bitcoin=v$VERSION ../bitcoin/contrib/gitian-descriptors/gitian-win32.yml
  40. ./bin/gsign --signer $SIGNER --release $VERSION-win32 --destination ../gitian.sigs/ ../bitcoin/contrib/gitian-descriptors/gitian-win32.yml
  41. pushd build/out
  42. zip -r bitcoin-$VERSION-win32-gitian.zip *
  43. mv bitcoin-$VERSION-win32-gitian.zip ../../
  44. popd
  45. Build output expected:
  46. 1. linux 32-bit and 64-bit binaries + source (bitcoin-$VERSION-linux-gitian.zip)
  47. 2. windows 32-bit binary, installer + source (bitcoin-$VERSION-win32-gitian.zip)
  48. 3. Gitian signatures (in gitian.sigs/$VERSION[-win32]/(your gitian key)/
  49. * repackage gitian builds for release as stand-alone zip/tar/installer exe
  50. * Linux .tar.gz:
  51. unzip bitcoin-$VERSION-linux-gitian.zip -d bitcoin-$VERSION-linux
  52. tar czvf bitcoin-$VERSION-linux.tar.gz bitcoin-$VERSION-linux
  53. rm -rf bitcoin-$VERSION-linux
  54. * Windows .zip and setup.exe:
  55. unzip bitcoin-$VERSION-win32-gitian.zip -d bitcoin-$VERSION-win32
  56. mv bitcoin-$VERSION-win32/bitcoin-*-setup.exe .
  57. zip -r bitcoin-$VERSION-win32.zip bitcoin-$VERSION-win32
  58. rm -rf bitcoin-$VERSION-win32
  59. * perform Mac build
  60. See this blog post for how Gavin set up his build environment and
  61. patched macdeployqt to build the OSX release:
  62. http://gavintech.blogspot.com/2011/11/deploying-bitcoin-qt-on-osx.html
  63. qmake USE_SSL=1 USE_UPNP=1 bitcoin-qt.pro
  64. make
  65. export QTDIR=/opt/local/share/qt4 # needed to find translations/qt_*.qm files
  66. T=$(contrib/qt_translations.py $QTDIR/translations src/qt/locale)
  67. contrib/macdeploy/macdeployqtplus Bitcoin-Qt.app -add-qt-tr $T -dmg -fancy contrib/macdeploy/fancy.plist
  68. Build output expected:
  69. Bitcoin-Qt.dmg
  70. * upload source and builds to SourceForge
  71. * create SHA1SUMS for builds, and PGP-sign it
  72. * update bitcoin.org version
  73. * update forum version
  74. * update wiki
  75. * update wiki download links
  76. * release gitian-signed gitian archives
  77. * Collect enough gitian signatures to meet minimum_weight (see contrib/gitian-downloader/*-download-config)
  78. * From a directory containing bitcoin source, gitian.sigs and gitian zips
  79. export VERSION=0.5.0
  80. mkdir bitcoin-$VERSION-linux-gitian; cd bitcoin-$VERSION-linux-gitian
  81. unzip ../bitcoin-$VERSION-linux-gitian.zip
  82. mkdir gitian
  83. cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/
  84. for file in `ls ../gitian.sigs/$VERSION/`; do
  85. cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert ./gitian/$file-build.assert
  86. cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert.sig ./gitian/$file-build.assert.sig
  87. done
  88. zip -r bitcoin-$VERSION-linux-gitian.zip *
  89. cp bitcoin-$VERSION-linux-gitian.zip ../
  90. cd ..
  91. mkdir bitcoin-$VERSION-linux-gitian; cd bitcoin-$VERSION-linux-gitian
  92. unzip ../bitcoin-$VERSION-linux-gitian.zip
  93. mkdir gitian
  94. cp ../bitcoin/contrib/gitian-downloader/*.pgp ./gitian/
  95. for file in `ls ../gitian.sigs/$VERSION/`; do
  96. cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert ./gitian/$file-build.assert
  97. cp ../gitian.sigs/$VERSION/$file/bitcoin-build.assert.sig ./gitian/$file-build.assert.sig
  98. done
  99. zip -r bitcoin-$VERSION-linux-gitian.zip *
  100. cp bitcoin-$VERSION-linux-gitian.zip ../
  101. * Upload gitian zips to SourceForge