build_wadetect.cmd 908 B

12345678910111213141516171819202122232425262728293031323334353637
  1. @echo off
  2. if not defined MAKENSIS set MAKENSIS=C:\Program Files\NSIS\UNICODE\makensis.exe
  3. if not defined WAPROJECTS set WAPROJECTS=c:\projects
  4. if not defined CURSANDBOX set CURSANDBOX=%WAPROJECTS%
  5. set MAKENSIS_COMMON_PARAM=/V1 /P4 /DLZMA /DLANG_USE_ALL
  6. set SCRIPT=%CURSANDBOX%\installer\browserplugin\main.nsi
  7. @echo.
  8. @echo.
  9. @echo Executing Makensis for Winamp Detect [Lang = '%%i']
  10. @echo.
  11. @echo.
  12. @echo "%MAKENSIS%" %MAKENSIS_COMMON_PARAM% "%SCRIPT%"
  13. "%MAKENSIS%" %MAKENSIS_COMMON_PARAM% "%SCRIPT%"
  14. if "%errorlevel%" EQU "0" (
  15. if /I "%BUILDTYPE%" == "final" (
  16. @echo.
  17. @echo.
  18. set SIGNNAME=Winamp Detect
  19. set INSTALLERNAME=installWaDetect
  20. @echo Signing [File='!INSTALLERNAME!_%%i.exe']
  21. @echo.
  22. @echo.
  23. call "%CURSANDBOX%\Mastering\Winamp\simple_sign.cmd" "!SIGNNAME!" "%CURSANDBOX%\installer\browserplugin\!INSTALLERNAME!_%%i.exe"
  24. )
  25. ) else (
  26. @echo Makensis Failed
  27. )