BuildPortableZIP.bat 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. set arg1=%1
  2. IF (%1) == () set arg1="DittoPortable"
  3. cd DittoSetup
  4. Rmdir Ditto /s /q
  5. MkDir Ditto
  6. MkDir Ditto\Help
  7. MkDir Ditto\Language
  8. MkDir Ditto\Themes
  9. MkDir Ditto\Addins
  10. if "%2" == "bit64" goto bit64
  11. copy ..\Release\Ditto.exe Ditto\Ditto.exe
  12. copy ..\Release\ICU_Loader.dll Ditto\ICU_Loader.dll
  13. copy ..\Release\Addins\*.dll Ditto\Addins\
  14. copy "%WINDIR%\SysWOW64\vcruntime140.dll" Ditto\vcruntime140.dll
  15. copy "%WINDIR%\SysWOW64\msvcp140.dll" Ditto\msvcp140.dll
  16. copy "%WINDIR%\SysWOW64\mfc140u.dll" Ditto\mfc140u.dll
  17. if "%2"=="" GOTO skipBit64
  18. if "%2"=="bit32" GOTO skipBit64
  19. :bit64
  20. copy ..\Release64\Ditto.exe Ditto\Ditto.exe
  21. copy ..\Release64\ICU_Loader.dll Ditto\ICU_Loader.dll
  22. copy ..\Release64\Addins\*.dll Ditto\Addins\
  23. copy "%WINDIR%\System32\vcruntime140.dll" Ditto\vcruntime140.dll
  24. copy "%WINDIR%\System32\vcruntime140_1.dll" Ditto\vcruntime140_1.dll
  25. copy "%WINDIR%\System32\msvcp140.dll" Ditto\msvcp140.dll
  26. copy "%WINDIR%\System32\mfc140u.dll" Ditto\mfc140u.dll
  27. :skipBit64
  28. copy Changes.txt Ditto\Changes.txt
  29. copy portable Ditto\portable
  30. copy ..\Debug\language\*.xml Ditto\language\
  31. copy ..\Debug\themes\*.xml Ditto\themes\
  32. 7z a -tzip Output\%arg1%.zip "Ditto\*" -r
  33. Rmdir Ditto /s /q
  34. cd ..