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.

gitian-win32.yml 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ---
  2. name: "bitcoin"
  3. suites:
  4. - "lucid"
  5. architectures:
  6. - "i386"
  7. packages:
  8. - "mingw32"
  9. - "git-core"
  10. - "unzip"
  11. - "nsis"
  12. - "faketime"
  13. reference_datetime: "2011-01-30 00:00:00"
  14. remotes:
  15. - "url": "https://github.com/bitcoin/bitcoin.git"
  16. "dir": "bitcoin"
  17. files:
  18. - "qt-win32-4.7.4-gitian.zip"
  19. - "boost-win32-1.49.0-gitian2.zip"
  20. - "bitcoin-deps-0.0.4.zip"
  21. script: |
  22. #
  23. mkdir $HOME/qt
  24. cd $HOME/qt
  25. unzip ../build/qt-win32-4.7.4-gitian.zip
  26. cd $HOME/build/
  27. export PATH=$PATH:$HOME/qt/bin/
  28. #
  29. mkdir boost_1_49_0
  30. cd boost_1_49_0
  31. mkdir -p stage/lib
  32. unzip ../boost-win32-1.49.0-gitian2.zip
  33. cd bin/$GBUILD_BITS
  34. for lib in *; do
  35. i586-mingw32msvc-ar rc ../../stage/lib/libboost_${lib}-mt-s.a $lib/*.o
  36. i586-mingw32msvc-ranlib ../../stage/lib/libboost_${lib}-mt-s.a
  37. done
  38. cd ../..
  39. mv include/boost .
  40. cd ..
  41. #
  42. unzip bitcoin-deps-0.0.4.zip
  43. #
  44. find -type f | xargs touch --date="$REFERENCE_DATETIME"
  45. #
  46. cd bitcoin
  47. mkdir -p $OUTDIR/src
  48. git archive HEAD | tar -x -C $OUTDIR/src
  49. cp $OUTDIR/src/doc/README_windows.txt $OUTDIR/readme.txt
  50. cp $OUTDIR/src/COPYING $OUTDIR/license.txt
  51. export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
  52. export FAKETIME=$REFERENCE_DATETIME
  53. export TZ=UTC
  54. $HOME/qt/src/bin/qmake -spec unsupported/win32-g++-cross MINIUPNPC_LIB_PATH=$HOME/build/miniupnpc MINIUPNPC_INCLUDE_PATH=$HOME/build/ BDB_LIB_PATH=$HOME/build/db-4.8.30.NC/build_unix BDB_INCLUDE_PATH=$HOME/build/db-4.8.30.NC/build_unix BOOST_LIB_PATH=$HOME/build/boost_1_47_0/stage/lib BOOST_INCLUDE_PATH=$HOME/build/boost_1_47_0 BOOST_LIB_SUFFIX=-mt-s BOOST_THREAD_LIB_SUFFIX=_win32-mt-s OPENSSL_LIB_PATH=$HOME/build/openssl-1.0.1b OPENSSL_INCLUDE_PATH=$HOME/build/openssl-1.0.1b/include QRENCODE_LIB_PATH=$HOME/build/qrencode-3.2.0/.libs QRENCODE_INCLUDE_PATH=$HOME/build/qrencode-3.2.0 USE_QRCODE=1 INCLUDEPATH=$HOME/build DEFINES=BOOST_THREAD_USE_LIB BITCOIN_NEED_QT_PLUGINS=1 QMAKE_LRELEASE=lrelease QMAKE_CXXFLAGS=-frandom-seed=bitcoin QMAKE_LFLAGS=-frandom-seed=bitcoin USE_BUILD_INFO=1
  55. make $MAKEOPTS
  56. cp release/bitcoin-qt.exe $OUTDIR/
  57. #
  58. cd src
  59. export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
  60. export FAKETIME=$REFERENCE_DATETIME
  61. export TZ=UTC
  62. make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build bitcoind.exe USE_UPNP=0 DEBUGFLAGS="-frandom-seed=bitcoin"
  63. i586-mingw32msvc-strip bitcoind.exe
  64. mkdir $OUTDIR/daemon
  65. cp bitcoind.exe $OUTDIR/daemon
  66. cd ..
  67. mkdir nsis
  68. git archive HEAD | tar -x -C nsis
  69. cd nsis/src
  70. mkdir ../release
  71. cp ../../release/* ../release/
  72. cp ../../src/*.exe .
  73. makensis ../share/setup.nsi
  74. cp ../share/bitcoin-*-win32-setup.exe $OUTDIR/