buildwindows.sh 781 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash
  2. dir=`pwd`
  3. cd ..
  4. export PATH=/usr/i586-mingw32msvc/bin:$PATH
  5. export CXXFLAGS="-Wall -g1 -O3"
  6. cmake -DCMAKE_TOOLCHAIN_FILE=./build/toolchain.nightly .
  7. result=$?
  8. if [ "$result" != 0 ]; then
  9. exit $result
  10. fi
  11. make -j16 2>build/make.log
  12. result=$?
  13. if [ "$result" != 0 ]; then
  14. exit $result
  15. fi
  16. cd ./packaging/windows
  17. ./make-translations.sh
  18. result=$?
  19. if [ "$result" != 0 ]; then
  20. exit $result
  21. fi
  22. makensis -DDLLDIR=$dir/../packaging/windows/libs/dll/ \
  23. -DPRODUCT_VERSION="nightly-$1" \
  24. -DEXESUFFIX=/src \
  25. -DUPX=true \
  26. setup.nsi
  27. cp ../../nightly/setup_finish.bmp .
  28. cp ../../nightly/setup_welcome.bmp .
  29. makensis -DDLLDIR=$dir/../packaging/windows/libs/dll/ \
  30. -DPRODUCT_VERSION="nightly-$1" \
  31. -DEXESUFFIX=/src \
  32. -DUPX=true \
  33. evol.nsi