Build-installer.bat 632 B

12345678910111213141516171819
  1. @echo off
  2. set /p MyAppVer= <version.txt
  3. if errorlevel 1 goto fin
  4. del %TEMP%\soundrts\dist\soundrts-%MyAppVer%.zip
  5. "c:\program files\7-zip\7z" a -tzip %TEMP%\soundrts\dist\soundrts-%MyAppVer%.zip %TEMP%\soundrts\build\soundrts-%MyAppVer% -r
  6. if errorlevel 1 goto fin
  7. "c:\program files (x86)\inno setup 5\compil32" /cc %TEMP%\soundrts\build\soundrts.iss
  8. if errorlevel 1 goto fin
  9. del %TEMP%\soundrts\dist\soundrts-%MyAppVer%-windows.zip
  10. "c:\program files\7-zip\7z" a -tzip %TEMP%\soundrts\dist\soundrts-%MyAppVer%-windows.zip %TEMP%\soundrts\build\soundrts-%MyAppVer%-windows -r
  11. if errorlevel 1 goto fin
  12. :fin
  13. if errorlevel 1 pause