1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- @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+watchdog.py+utils.py+consts.py+compressedcookielib.py+utils.py+api.py+plugin.py "..\out.py" >NUL 2>NUL
- cd "..\"
- copy /b /Y utf8.txt+out.py "tmp.py"
- copy /b /Y tmp.py "out.py"
- timeout /t 1 >NUL 2>NUL
- echo do replace...
- python "replace.py" "out.py" "stable"
- echo do minify...
- copy /Y "out.py" "output/plugin.py" >NUL 2>NUL
- copy /Y "startup.py" "output/startup.py" >NUL 2>NUL
- rem D:\dev\Python27\Scripts\pyminifier --obfuscate-variables --obfuscate-classes --obfuscate-import-methods --prepend=utf8.txt -o "output/plugin_pure.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 copy /b /Y "utf8.txt"+"src\startup.py" "output\startup.py" >NUL 2>NUL
- 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"
- echo do cleanup...
- DEL /Q /F /S "*.pyc" >NUL 2>NUL
- del out.py >NUL 2>NUL
- rd /s /q "../Repo/source/stable/resources" >NUL 2>NUL
- rd /s /q "../Repo/source/stable/framework" >NUL 2>NUL
- echo V | xcopy "resources" /f /y /s "../Repo/source/stable/resources" >NUL 2>NUL
- echo V | xcopy "framework" /f /y /s "..//Repo/source/stable/framework" >NUL 2>NUL
- echo D | xcopy "output/startup.py" /f /y "../Repo/source/stable/startup.py" >NUL 2>NUL
- echo D | xcopy "output/plugin.py" /f /y "../Repo/source/stable/plugin.py" >NUL 2>NUL
- echo D | xcopy "addon.xml" /f /y "../Repo/source/stable/addon.xml" >NUL 2>NUL
- echo D | xcopy "fanart.jpg" /f /y "../Repo/source/stable/fanart.jpg" >NUL 2>NUL
- echo D | xcopy "icon.png" /f /y "../Repo/source/stable/icon.png" >NUL 2>NUL
- echo D | xcopy "changelog.txt" /f /y "../Repo/source/stable/changelog.txt" >NUL 2>NUL
- echo D | xcopy "addon.xml" /f /y "C:\Users\SevenX\AppData\Roaming\Kodi\addons\plugin.video.cryflix/addon.xml" >NUL 2>NUL
- echo D | xcopy "output/plugin.py" /f /y "C:\Users\SevenX\AppData\Roaming\Kodi\addons\plugin.video.cryflix/plugin.py" >NUL 2>NUL
- echo D | xcopy "output/startup.py" /f /y "DC:\Users\SevenX\AppData\Roaming\Kodi\addons\plugin.video.cryflix/startup.py" >NUL 2>NUL
- rem pause
|