build.bat 874 B

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. mkdir content\Content\bootstrap-fileinput\css
  13. mkdir content\Content\bootstrap-fileinput\img
  14. REM delete the previous package versions
  15. del bootstrap-fileinput.*
  16. REM copy the content to the destination folders
  17. copy ..\js\*.js content\Scripts
  18. copy ..\css\*.css content\Content\bootstrap-fileinput\css
  19. copy ..\img\*.* content\Content\bootstrap-fileinput\img
  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 (bootstrap-fileinput.*) do (
  24. REM NuGet Push %%f
  25. REM rmdir /s /q content
  26. REM del %%f
  27. REM )