Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

release-process.txt 5.8KB

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