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

kmake.bat 3.7KB

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