12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- @echo off
- md output >NUL 2>NUL
- del out.py >NUL 2>NUL
- del "output/plugin.py" >NUL 2>NUL
- del "output/startup.py" >NUL 2>NUL
- echo do copy...
- cd "src"
- rem copy /b /Y playerwatcher.py+viewids.py+consts.py+compressedcookielib.py+utils.py+portal.py+api.py+plugin.py "..\out.py" >NUL 2>NUL
- copy /b /Y viewids.py+utils.py+consts.py+playserver.py+compressedcookielib.py+api.py+plugin.py "..\out.py" >NUL 2>NUL
- cd "..\"
- timeout /t 1 >NUL 2>NUL
- echo do replace...
- python "replace.py" "out.py" "beta"
- echo do minify...
- copy /Y /b out.py "tmp.py" >NUL 2>NUL
- copy /Y /b "startup.py" "output/startup.py" >NUL 2>NUL
- python pypreprocessor.py "tmp.py"
- copy /b /Y "utf8_beta.txt"+"tmp_out.py" "out.py"
- copy /b /Y "out.py" "tmp.py"
- C:\Python27\Scripts\pyminifier --obfuscate-variables --obfuscate-classes --obfuscate-functions --gzip_modified --prepend=utf8_beta.txt -o tmp.py out.py
- rem C:\Python27\Scripts\pyminifier --obfuscate-variables --obfuscate-classes --obfuscate-functions --prepend=utf8_beta.txt -o tmp.py out.py
- rem C:\Python27\Scripts\pyminifier --obfuscate-variables --obfuscate-classes --obfuscate-functions --prepend=utf8_beta.txt -o tmp.py out.py
- rem D:\dev\Python27\Scripts\pyminifier --obfuscate-variables --obfuscate-classes --obfuscate-import-methods --gzip_modified --prepend=utf8.txt -o "output/plugin.py" out.py
- rem D:\dev\Python27\Scripts\pyminifier --obfuscate-variables --obfuscate-classes --obfuscate-import-methods --gzip_modified --prepend=utf8.txt -o "output/startup.py" "src/startup.py"
- copy /b /Y "tmp.py" "output/plugin.py"
- echo do cleanup...
- DEL /Q /F /S "*.pyc" >NUL 2>NUL
- del tmp.py >NUL 2>NUL
- del out.py >NUL 2>NUL
- rd /s /q "../Repo/source/beta/resources" >NUL 2>NUL
- rd /s /q "../Repo/source/beta/framework" >NUL 2>NUL
- echo V | xcopy "resources" /f /y /s "../Repo/source/beta/resources" >NUL 2>NUL
- echo V | xcopy "framework" /f /y /s "..//Repo/source/beta/framework" >NUL 2>NUL
- echo D | xcopy "output/startup.py" /f /y "../Repo/source/beta/startup.py" >NUL 2>NUL
- echo D | xcopy "output/plugin.py" /f /y "../Repo/source/beta/plugin.py" >NUL 2>NUL
- echo D | xcopy "addon.xml" /f /y "../Repo/source/beta/addon.xml" >NUL 2>NUL
- echo D | xcopy "fanart.jpg" /f /y "../Repo/source/beta/fanart.jpg" >NUL 2>NUL
- echo D | xcopy "icon.png" /f /y "../Repo/source/beta/icon.png" >NUL 2>NUL
- echo D | xcopy "changelog.txt" /f /y "../Repo/source/beta/changelog.txt" >NUL 2>NUL
- echo D | xcopy "addon.xml" /f /y "C:\Users\SevenX\AppData\Roaming\Kodi\addons\plugin.video.cryflix_beta/addon.xml" >NUL 2>NUL
- echo D | xcopy "output/plugin.py" /f /y "C:\Users\SevenX\AppData\Roaming\Kodi\addons\plugin.video.cryflix_beta/plugin.py" >NUL 2>NUL
- echo D | xcopy "output/startup.py" /f /y "C:\Users\SevenX\AppData\Roaming\Kodi\addons\plugin.video.cryflix_beta/startup.py" >NUL 2>NUL
- echo D | xcopy "resources/settings_template.xml" /f /y "DC:\Users\SevenX\AppData\Roaming\Kodi\addons\plugin.video.cryflix_beta/resources/settings.xml" >NUL 2>NUL
- rem pause
|