123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- @echo off
-
- :--- Pull content submodule ---
- pushd Contents\Libraries\Shared\content\
- git commit -a -m a
- git checkout .
- git pull
- popd
-
- :=== Parameters ===
- python get_version.py Contents\Code\__init__.py >Contents\VERSION
- set /p ver=<Contents\VERSION
- echo VERSION = %ver%
- pause
-
- set prog=PlayStream
- set pack_name=PlayStream.bundle
- set desc=Play online streams from various sources, mostly Latvian
-
- set release_dir=release\
- set feed_dir=q:\web\files\
-
- rem set ZIP=\Program Files (x86)\Gow\bin\zip.exe
- set ZIP="C:\Program Files\WinRAR\winrar.exe"
- :=== data files ===
- if exist "%pack_name%" rm -r -f "%pack_name%"
- mkdir "%pack_name%"
- if not exist %release_dir% mkdir %release_dir%
- if not exist %feed_dir% mkdir %feed_dir%
-
- xcopy /y /d Contents\Libraries\Shared\content\picons\*.* Contents\Resources\
- for %%f in (
- readme.md
- changelog.md
- Contents\*.*
- Contents\Code\*.py
- Contents\Resources\*.*
- Contents\Libraries\Shared\*.py
- Contents\Libraries\Shared\content\__init__.py
- Contents\Libraries\Shared\content\ContentSources.py
- Contents\Libraries\Shared\content\playstreamproxy.py
- Contents\Libraries\Shared\content\Downloader.py
- Contents\Libraries\Shared\content\resolver.py
- Contents\Libraries\Shared\content\util.py
- Contents\Libraries\Shared\content\file.py
- Contents\Libraries\Shared\content\run.py
- Contents\Libraries\Shared\content\demjson.py
- Contents\Libraries\Shared\content\ordereddict.py
- Contents\Libraries\Shared\content\sources\__init__.py
- Contents\Libraries\Shared\content\sources\SourceBase.py
- Contents\Libraries\Shared\content\sources\cinemalive.py
- Contents\Libraries\Shared\content\sources\config.py
- Contents\Libraries\Shared\content\sources\euronews.py
- Contents\Libraries\Shared\content\sources\filmix.py
- Contents\Libraries\Shared\content\sources\filmon.py
- Contents\Libraries\Shared\content\sources\iplayer.py
- Contents\Libraries\Shared\content\sources\movieplace.py
- Contents\Libraries\Shared\content\sources\ltc.py
- Contents\Libraries\Shared\content\sources\mtgplay.py
- Contents\Libraries\Shared\content\sources\play24.py
- Contents\Libraries\Shared\content\sources\replay.py
- Contents\Libraries\Shared\content\sources\lmt.py
- Contents\Libraries\Shared\content\sources\serialguru.py
- Contents\Libraries\Shared\content\sources\tvdom.py
- Contents\Libraries\Shared\content\sources\ustvnow.py
- Contents\Libraries\Shared\content\sources\viaplay.py
- Contents\Libraries\Shared\content\sources\tvplay.py
- Contents\Libraries\Shared\content\sources\filmas.py
- Contents\Libraries\Shared\content\sources\enigma2.py
- Contents\Libraries\Shared\content\sources\YouTubeVideoUrl.py
- Contents\Libraries\Shared\content\sources\jsinterp.py
- Contents\Libraries\Shared\content\sources\swfinterp.py
- Contents\Libraries\Shared\content\sources\streams.cfg
- Contents\Libraries\Shared\content\resolvers\__init__.py
- Contents\Libraries\Shared\content\resolvers\aadecode.py
- Contents\Libraries\Shared\content\resolvers\hqqresolver.py
- Contents\Libraries\Shared\content\resolvers\openload3.py
- Contents\Libraries\Shared\content\resolvers\hdgo.py
- Contents\Libraries\Shared\content\resolvers\kapnob.py
- Contents\Libraries\Shared\content\resolvers\kodik.py
- Contents\Libraries\Shared\content\resolvers\youtuberesolver.py
- ) do echo f| xcopy /y %%f %pack_name%\%%f
-
-
- "%ProgramFiles%\WinRAR\winrar.exe" x -ibck requests.zip *.* %pack_name%\Contents\Libraries\Shared
-
- if exist %release_dir%%pack_name%-%ver%.zip rm %release_dir%%pack_name%-%ver%.zip
- rem zip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
- "%ProgramFiles%\WinRAR\winrar.exe" a -afzip -r %release_dir%%pack_name%-%ver%.zip %pack_name%
-
-
- git add %release_dir%%pack_name%-%ver%.zip
- rm -r -f "%pack_name%"
-
- if not ()==(%1%) (
- git commit -m %ver%
- git tag -d "%ver%"
- git tag %ver%
- git push
-
- copy %release_dir%%pack_name%-%ver%.zip %feed_dir%%pack_name%\%pack_name%-%ver%.zip /Y
- )
- pause
|