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

kmake.bat 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. @echo off
  2. :--- Pull content submodule ---
  3. pushd resources\lib\content
  4. git checkout .
  5. git pull
  6. popd
  7. :=== Parameters ===
  8. python get_version.py addon.xml >version.txt
  9. set /p ver=<version.txt
  10. echo %ver%
  11. pause
  12. set prog=PlayStream
  13. set pack_name=plugin.video.playstream
  14. set desc=Play online streams from various sources, mostly Latvian
  15. set ipk_dir=ipkg\
  16. set release_dir=release\
  17. set repo_dir=..\repo\
  18. set feed_dir=q:\web\repo\
  19. set AR=\MinGW\bin\ar.exe
  20. set TAR=\MinGW\msys\1.0\bin\tar.exe
  21. rem set ZIP=\Program Files (x86)\Gow\bin\zip.exe
  22. :=== data files ===
  23. if exist "%pack_name%" rm -r -f "%pack_name%"
  24. mkdir "%pack_name%""
  25. if not exist %release_dir% mkdir %release_dir%
  26. if not exist %repo_dir% mkdir %repo_dir%
  27. if not exist %repo_dir%%pack_name% mkdir %repo_dir%%pack_name%
  28. for %%f in (
  29. readme.md
  30. changelog.md
  31. addon.xml
  32. addon.py
  33. context_menu.py
  34. context_download.py
  35. service.py
  36. icon.png
  37. kodiswift\*.py
  38. resources\__init__.py
  39. resources\settings.xml
  40. resources\icon.png
  41. resources\language\English\*
  42. resources\lib\__init__.py
  43. resources\lib\content\__init__.py
  44. resources\lib\content\ContentSources.py
  45. resources\lib\content\playstreamproxy.py
  46. resources\lib\content\Downloader.py
  47. resources\lib\content\resolver.py
  48. resources\lib\content\util.py
  49. resources\lib\content\run.py
  50. resources\lib\content\demjson.py
  51. resources\lib\content\ordereddict.py
  52. resources\lib\content\sources\__init__.py
  53. resources\lib\content\sources\SourceBase.py
  54. resources\lib\content\sources\cinemalive.py
  55. resources\lib\content\sources\config.py
  56. resources\lib\content\sources\euronews.py
  57. resources\lib\content\sources\filmix.py
  58. resources\lib\content\sources\filmon.py
  59. resources\lib\content\sources\iplayer.py
  60. resources\lib\content\sources\movieplace.py
  61. resources\lib\content\sources\ltc.py
  62. resources\lib\content\sources\mtgplay.py
  63. resources\lib\content\sources\play24.py
  64. resources\lib\content\sources\replay.py
  65. resources\lib\content\sources\lmt.py
  66. resources\lib\content\sources\serialguru.py
  67. resources\lib\content\sources\tvdom.py
  68. resources\lib\content\sources\ustvnow.py
  69. resources\lib\content\sources\viaplay.py
  70. resources\lib\content\sources\YouTubeVideoUrl.py
  71. resources\lib\content\sources\jsinterp.py
  72. resources\lib\content\sources\swfinterp.py
  73. resources\lib\content\sources\streams.cfg
  74. resources\lib\content\resolvers\__init__.py
  75. resources\lib\content\resolvers\aadecode.py
  76. resources\lib\content\resolvers\hqqresolver.py
  77. resources\lib\content\resolvers\openload3.py
  78. resources\lib\content\resolvers\hdgo.py
  79. resources\lib\content\resolvers\kapnob.py
  80. resources\lib\content\resolvers\kodik.py
  81. resources\lib\content\resolvers\cloudsany.py
  82. resources\lib\content\resolvers\youtuberesolver.py
  83. ) do echo f| xcopy %%f %pack_name%\%%f
  84. xcopy /y /q resources\lib\content\picons\* %pack_name%\resources\picons\
  85. pause
  86. if exist %release_dir%%pack_name%-%ver%.zip rm %release_dir%%pack_name%-%ver%.zip
  87. rem zip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  88. "C:\Program Files\WinRAR\winrar.exe" a -afzip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
  89. copy addon.xml %repo_dir%%pack_name%\addon.xml /Y
  90. copy %release_dir%%pack_name%-%ver%.zip %repo_dir%%pack_name%\%pack_name%-%ver%.zip /Y
  91. 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
  92. git add %release_dir%%pack_name%-%ver%.zip
  93. if not ()==(%1%) (
  94. git commit -m %ver%
  95. git tag -d "%ver%"
  96. git tag %ver%
  97. git push
  98. pushd %repo_dir%..
  99. call update_repo.bat
  100. xcopy /s /y repo %feed_dir%
  101. popd
  102. )
  103. pause