build.bat 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. @echo off
  2. NuGet Update -self
  3. REM remove package content folder
  4. rmdir /s /q content
  5. REM create new package content folder
  6. mkdir content
  7. REM create sub folder for js files
  8. mkdir content\Scripts
  9. REM create sub folders for css and img files
  10. mkdir content\Content
  11. mkdir content\Content\bootstrap-fileinput
  12. REM delete the previous package versions
  13. REM del bootstrap-fileinput.*
  14. REM copy the content to the destination folders
  15. xcopy ..\js content\Scripts /D /E /C /R /I /K /Y
  16. xcopy ..\css content\Content\bootstrap-fileinput\css /D /E /C /R /I /K /Y
  17. xcopy ..\img content\Content\bootstrap-fileinput\img /D /E /C /R /I /K /Y
  18. xcopy ..\themes content\Content\bootstrap-fileinput\themes /D /E /C /R /I /K /Y
  19. xcopy ..\sass content\Content\bootstrap-fileinput\sass /D /E /C /R /I /K /Y
  20. REM create a new package
  21. NuGet Pack Package.nuspec -Exclude NuGet.exe;build.bat
  22. REM Upload the new package
  23. REM for %%f in (content\Content\bootstrap-fileinput.*) do (
  24. REM NuGet Push %%f
  25. REM rmdir /s /q content
  26. REM del %%f
  27. REM )