package.cmd 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. @echo off
  2. rem
  3. rem **** Run this from the top of the openMSX source tree: ****
  4. rem
  5. rem Usage: package.cmd OPENMSX_PLATFORM OPENMSX_CONFIGURATION CATAPULT_BASEPATH
  6. rem
  7. rem **** OPENMSX_PLATFORM is { Win32, x64 } ****
  8. rem **** OPENMSX_CONFIGURATION is { Release, Developer, Debug } ****
  9. rem **** CATAPULT_BASEPATH is an absolute or relative path; e.g. ..\wxCatapult ****
  10. if "%3" == "" goto usage
  11. if "%4" NEQ "" goto usage
  12. setlocal
  13. set OPENMSX_PLATFORM=%1
  14. echo OPENMSX_PLATFORM is %OPENMSX_PLATFORM%
  15. set OPENMSX_CONFIGURATION=%2
  16. echo OPENMSX_CONFIGURATION is %OPENMSX_CONFIGURATION%
  17. set CATAPULT_BASEPATH=%3
  18. echo CATAPULT_BASEPATH is %CATAPULT_BASEPATH%
  19. set OPENMSX_PACKAGE_WINDOWS_PATH=.\build\package-windows
  20. set PYTHONPATH=%PYTHONPATH%;.\build
  21. python3 %OPENMSX_PACKAGE_WINDOWS_PATH%\packagezip.py %OPENMSX_PLATFORM% %OPENMSX_CONFIGURATION% %CATAPULT_BASEPATH%
  22. python3 %OPENMSX_PACKAGE_WINDOWS_PATH%\packagemsi.py %OPENMSX_PLATFORM% %OPENMSX_CONFIGURATION% %CATAPULT_BASEPATH%
  23. endlocal
  24. goto end
  25. :usage
  26. echo Usage: package.cmd platform configuration catapultPath
  27. :end