You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1007 B

  1. @setlocal enabledelayedexpansion
  2. @set MSBUILD=
  3. @for /D %%M in ("%ProgramFiles(x86)%\Microsoft Visual Studio\2019"\*) do (
  4. @if exist "%%M\MSBuild\Current\Bin\MSBuild.exe" (
  5. @set "MSBUILD=%%M\MSBuild\Current\Bin\MSBuild.exe"
  6. )
  7. )
  8. @if "%MSBUILD%" == "" (
  9. @echo Could not find VS2019 MSBuild
  10. @exit /b 1
  11. )
  12. @del ICSharpCode.Decompiler\bin\Release\*.nupkg
  13. "%MSBUILD%" ILSpy.sln /p:Configuration=Release "/p:Platform=Any CPU"
  14. @IF %ERRORLEVEL% NEQ 0 (
  15. @pause
  16. @exit /b 1
  17. )
  18. @if not exist "%ProgramFiles%\7-zip\7z.exe" (
  19. @echo Could not find 7zip
  20. @exit /b 1
  21. )
  22. @del artifacts.zip
  23. @rmdir /Q /S artifacts
  24. @mkdir artifacts
  25. "%ProgramFiles%\7-zip\7z.exe" a artifacts\ILSpy_binaries.zip %cd%\ILSpy\bin\Release\net46\*.dll %cd%\ILSpy\bin\Release\net46\*.exe %cd%\ILSpy\bin\Release\net46\*.config
  26. @copy ILSpy.AddIn\bin\Release\net46\ILSpy.AddIn.vsix artifacts\
  27. @copy ICSharpCode.Decompiler\bin\Release\*.nupkg artifacts\
  28. "%ProgramFiles%\7-zip\7z.exe" a artifacts.zip %cd%\artifacts\*
  29. @exit /b 0