package_openmpt_installer_args.cmd 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @echo off
  2. set BATCH_DIR=%~dp0
  3. cd %BATCH_DIR%
  4. cd ..\..
  5. set MY_DIR=%CD%
  6. call "build\auto\setup_arguments.cmd" %1 %2 %3 %4 %5 %6
  7. call build\auto\setup_vs_any.cmd
  8. call build\auto\helper_get_svnversion.cmd
  9. call build\auto\helper_get_openmpt_version.cmd
  10. set MPT_REVISION=%OPENMPT_VERSION%-%SVNVERSION%
  11. cd bin || goto error
  12. rmdir /s /q openmpt
  13. del /f /q openmpt-pkg.win.tar
  14. mkdir openmpt
  15. mkdir openmpt\pkg.win
  16. mkdir openmpt\pkg.win\%OPENMPT_VERSION_MAJORMAJOR%.%OPENMPT_VERSION_MAJOR%
  17. copy /y ..\installer\OpenMPT-%OPENMPT_VERSION%-Setup.exe openmpt\pkg.win\%OPENMPT_VERSION_MAJORMAJOR%.%OPENMPT_VERSION_MAJOR%\OpenMPT-%OPENMPT_VERSION%-%SVNVERSION%-Setup.exe
  18. copy /y ..\installer\OpenMPT-%OPENMPT_VERSION%-Setup.exe.digests openmpt\pkg.win\%OPENMPT_VERSION_MAJORMAJOR%.%OPENMPT_VERSION_MAJOR%\OpenMPT-%OPENMPT_VERSION%-%SVNVERSION%-Setup.exe.digests
  19. copy /y ..\installer\OpenMPT-%OPENMPT_VERSION%-Setup-x64.exe openmpt\pkg.win\%OPENMPT_VERSION_MAJORMAJOR%.%OPENMPT_VERSION_MAJOR%\OpenMPT-%OPENMPT_VERSION%-%SVNVERSION%-Setup-x64.exe
  20. copy /y ..\installer\OpenMPT-%OPENMPT_VERSION%-Setup-x64.exe.digests openmpt\pkg.win\%OPENMPT_VERSION_MAJORMAJOR%.%OPENMPT_VERSION_MAJOR%\OpenMPT-%OPENMPT_VERSION%-%SVNVERSION%-Setup-x64.exe.digests
  21. copy /y ..\installer\OpenMPT-%OPENMPT_VERSION%-portable.zip openmpt\pkg.win\%OPENMPT_VERSION_MAJORMAJOR%.%OPENMPT_VERSION_MAJOR%\OpenMPT-%OPENMPT_VERSION%-%SVNVERSION%-portable.zip
  22. copy /y ..\installer\OpenMPT-%OPENMPT_VERSION%-portable.zip.digests openmpt\pkg.win\%OPENMPT_VERSION_MAJORMAJOR%.%OPENMPT_VERSION_MAJOR%\OpenMPT-%OPENMPT_VERSION%-%SVNVERSION%-portable.zip.digests
  23. copy /y ..\installer\OpenMPT-%OPENMPT_VERSION%-portable-x64.zip openmpt\pkg.win\%OPENMPT_VERSION_MAJORMAJOR%.%OPENMPT_VERSION_MAJOR%\OpenMPT-%OPENMPT_VERSION%-%SVNVERSION%-portable-x64.zip
  24. copy /y ..\installer\OpenMPT-%OPENMPT_VERSION%-portable-x64.zip.digests openmpt\pkg.win\%OPENMPT_VERSION_MAJORMAJOR%.%OPENMPT_VERSION_MAJOR%\OpenMPT-%OPENMPT_VERSION%-%SVNVERSION%-portable-x64.zip.digests
  25. ..\build\tools\7zip\7z.exe a -ttar openmpt-pkg.win.tar openmpt || goto error
  26. rmdir /s /q openmpt
  27. cd .. || goto error
  28. goto noerror
  29. :error
  30. cd "%MY_DIR%"
  31. exit 1
  32. :noerror
  33. cd "%MY_DIR%"
  34. exit 0