33 lines
1.2 KiB
Batchfile
33 lines
1.2 KiB
Batchfile
@echo off
|
|
|
|
del "%~dp0\custom_spider.jar"
|
|
rd /s/q "%~dp0\Smali_classes"
|
|
|
|
java -jar "%~dp0\3rd\baksmali-2.5.2.jar" d "%~dp0\..\app\build\intermediates\dex\release\minifyReleaseWithR8\classes.dex" -o "%~dp0\Smali_classes"
|
|
|
|
rd /s/q "%~dp0\spider.jar\smali\com\github\catvod\spider"
|
|
rd /s/q "%~dp0\spider.jar\smali\com\github\catvod\parser"
|
|
|
|
if not exist "%~dp0\spider.jar\smali\com\github\catvod\" md "%~dp0\spider.jar\smali\com\github\catvod\"
|
|
|
|
if "%1" == "ec" (
|
|
java -Dfile.encoding=utf-8 -jar "%~dp0\3rd\oss.jar" "%~dp0\Smali_classes"
|
|
)
|
|
|
|
move "%~dp0\Smali_classes\com\github\catvod\spider" "%~dp0\spider.jar\smali\com\github\catvod\"
|
|
move "%~dp0\Smali_classes\com\github\catvod\parser" "%~dp0\spider.jar\smali\com\github\catvod\"
|
|
|
|
rd /s/q "%~dp0\Smali_classes"
|
|
|
|
java -jar "%~dp0\3rd\apktool_2.4.1.jar" b "%~dp0\spider.jar" -c
|
|
|
|
move "%~dp0\spider.jar\dist\dex.jar" "%~dp0\custom_spider.jar"
|
|
|
|
certUtil -hashfile "%~dp0\custom_spider.jar" MD5 | find /i /v "md5" | find /i /v "certutil" > "%~dp0\custom_spider.jar.md5"
|
|
|
|
rd /s/q "%~dp0\spider.jar\smali\com\github\catvod\spider"
|
|
rd /s/q "%~dp0\spider.jar\smali\com\github\catvod\parser"
|
|
|
|
rd /s/q "%~dp0\spider.jar\build"
|
|
rd /s/q "%~dp0\spider.jar\dist"
|