Kodi plugin to to play various online streams (mostly Latvian)

kmake.bat 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @echo off
  2. :=== Parameters ===
  3. python get_version.py addon.xml >version.txt
  4. set /p ver=<version.txt
  5. echo %ver%
  6. set prog=PlayStream
  7. set pack_name=plugin.video.playstream
  8. set desc=Play online streams from various sources, mostly Latvian
  9. set ipk_dir=ipkg\
  10. set release_dir=release\
  11. set repo_dir=..\repo\
  12. set feed_dir=w:\repo\
  13. set AR=\MinGW\bin\ar.exe
  14. set TAR=\MinGW\msys\1.0\bin\tar.exe
  15. rem set ZIP=\Program Files (x86)\Gow\bin\zip.exe
  16. :=== data files ===
  17. if exist %pack_name% rm -r -f "%pack_name%""
  18. mkdir "%pack_name%""
  19. if not exist %release_dir% mkdir %release_dir%
  20. if not exist %repo_dir% mkdir %repo_dir%
  21. if not exist %repo_dir%%pack_name% mkdir %repo_dir%%pack_name%
  22. if not exist %release_dir% mkdir %release_dir%
  23. for %%f in (
  24. readme.md
  25. changelog.md
  26. addon.xml
  27. addon.py
  28. icon.png
  29. resources\__init__.py
  30. resources\icon.png
  31. resources\language\English\*
  32. resources\lib\__init__.py
  33. resources\lib\ContentSources.py
  34. resources\lib\resolver.py
  35. resources\lib\util.py
  36. resources\lib\demjson.py
  37. resources\lib\sources\__init__.py
  38. resources\lib\sources\SourceBase.py
  39. resources\lib\sources\cinemalive.py
  40. resources\lib\sources\config.py
  41. resources\lib\sources\euronews.py
  42. resources\lib\sources\filmix.py
  43. resources\lib\sources\filmon.py
  44. resources\lib\sources\iplayer.py
  45. resources\lib\sources\movieplace.py
  46. resources\lib\sources\ltc.py
  47. resources\lib\sources\mtgplay.py
  48. resources\lib\sources\play24.py
  49. resources\lib\sources\replay.py
  50. resources\lib\sources\serialguru.py
  51. resources\lib\sources\tvdom.py
  52. resources\lib\sources\ustvnow.py
  53. resources\lib\sources\viaplay.py
  54. resources\lib\sources\YouTubeVideoUrl.py
  55. resources\lib\sources\jsinterp.py
  56. resources\lib\sources\swfinterp.py
  57. resources\lib\sources\streams.cfg
  58. resources\lib\resolvers\__init__.py
  59. resources\lib\resolvers\aadecode.py
  60. resources\lib\resolvers\hqqresolver.py
  61. resources\lib\resolvers\openload3.py
  62. resources\lib\resolvers\hdgo.py
  63. resources\lib\resolvers\kapnob.py
  64. resources\lib\resolvers\kodik.py
  65. resources\lib\resolvers\youtuberesolver.py
  66. ) do echo f| xcopy %%f %pack_name%\%%f
  67. if exist %release_dir%%pack_name%-%ver%.zip rm %release_dir%%pack_name%-%ver%.zip
  68. rem zip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  69. "C:\Program Files\WinRAR\winrar.exe" a -afzip -r %release_dir%%pack_name%-%ver%.zip plugin.video.playstream
  70. copy addon.xml %repo_dir%%pack_name%\addon.xml /Y
  71. copy %release_dir%%pack_name%-%ver%.zip %repo_dir%%pack_name%\%pack_name%-%ver%.zip /Y
  72. python -c "import hashlib; print hashlib.md5(open(r'%repo_dir%%pack_name%\%pack_name%-%ver%.zip','r').read()).hexdigest()" >%repo_dir%%pack_name%\%pack_name%-%ver%.zip.md5
  73. git add %release_dir%%pack_name%-%ver%.zip
  74. pushd %repo_dir%..
  75. call update_repo.bat
  76. xcopy /s /y repo %feed_dir%
  77. popd