mingw-build.sh 772 B

1234567891011121314151617181920212223242526272829303132333435
  1. # $1 - x64 or x86
  2. # $2 - win32 or win64
  3. # $3 - extra config flags e.g. "--enable-debytecode" or ""
  4. # $4 - 2.90 or master or debytecode
  5. # $5 - branch name (e.g. build-testing)
  6. # $6 - MINGW32 or MINGW64
  7. export SDL_PREFIX=`./mingw-sdl-prefix.sh $6`
  8. MSYSTEM=$6
  9. . /etc/profile
  10. cd /mzx-build-workingdir/megazeux
  11. git fetch
  12. git checkout $5
  13. git pull
  14. ./config.sh --platform $2 $3 --enable-release
  15. make -j8 debuglink
  16. make test
  17. rm -rf build
  18. make archive
  19. /mingw-build-debug.sh $1
  20. mkdir -p /mzx-build-workingdir/zips/$4
  21. mv build/dist/windows-$1/* /mzx-build-workingdir/zips/$4
  22. mkdir -p /mzx-build-workingdir/releases/$4
  23. rm -rf /mzx-build-workingdir/releases/$4/windows-$1
  24. mv build/windows-$1/ /mzx-build-workingdir/releases/$4/
  25. make distclean