1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- @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+api.py+plugin.py "..\out.py" >NUL 2>NUL
- cd "..\"
- timeout /t 1 >NUL 2>NUL
- echo do replace...
- python "replace.py" "out.py" "stable"
- 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"
- python languageconvert.py
- copy /b /Y "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.txt -o tmp.py out.py
- rem C:\Python27\Scripts\pyminifier --obfuscate-variables --obfuscate-classes --obfuscate-functions --prepend=utf8_stable.txt -o tmp.py out.py
- rem C:\Python27\Scripts\pyminifier --obfuscate-variables --obfuscate-classes --obfuscate-functions --prepend=utf8_stable.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 "C:\Users\SevenX\Dropbox\Crynet\Repo/source/stable/resources" >NUL 2>NUL
- rd /s /q "C:\Users\SevenX\Dropbox\Crynet\Repo/source/stable/framework" >NUL 2>NUL
- md "resources/language/resource.language.en_us" >NUL 2>NUL
- echo V | xcopy "resources/language/english/strings.po" /f /y /s "resources/language/resource.language.en_us" >NUL 2>NUL
- echo V | xcopy "resources/language/resource.language.en_us" /f /y /s "resources/language/resource.language.en_gb" >NUL 2>NUL
- echo V | xcopy "resources" /f /y /s "C:\Users\SevenX\Dropbox\Crynet\Repo/source/stable/resources" >NUL 2>NUL
- echo V | xcopy "framework" /f /y /s "C:\Users\SevenX\Dropbox\Crynet\Repo/source/stable/framework" >NUL 2>NUL
- echo D | xcopy "output/startup.py" /f /y "C:\Users\SevenX\Dropbox\Crynet\Repo/source/stable/startup.py" >NUL 2>NUL
- echo D | xcopy "output/plugin.py" /f /y "C:\Users\SevenX\Dropbox\Crynet\Repo/source/stable/plugin.py" >NUL 2>NUL
- echo D | xcopy "addon.xml" /f /y "C:\Users\SevenX\Dropbox\Crynet\Repo/source/stable/addon.xml" >NUL 2>NUL
- echo D | xcopy "fanart.jpg" /f /y "C:\Users\SevenX\Dropbox\Crynet\Repo/source/stable/fanart.jpg" >NUL 2>NUL
- echo D | xcopy "icon.png" /f /y "C:\Users\SevenX\Dropbox\Crynet\Repo/source/stable/icon.png" >NUL 2>NUL
- echo D | xcopy "changelog.txt" /f /y "C:\Users\SevenX\Dropbox\Crynet\Repo/source/stable/changelog.txt" >NUL 2>NUL
- echo V | xcopy "resources" /f /y /s "C:\Users\SevenX\AppData\Roaming\Kodi\addons\plugin.video.cryflix/resources" >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 "C:\Users\SevenX\AppData\Roaming\Kodi\addons\plugin.video.cryflix/startup.py" >NUL 2>NUL
- echo D | xcopy "resources/settings.xml" /f /y "C:\Users\SevenX\AppData\Roaming\Kodi\addons\plugin.video.cryflix/resources/settings.xml" >NUL 2>NUL
|