genJar.bat 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. @echo off
  2. del "%~dp0\custom_spider.jar"
  3. rd /s/q "%~dp0\Smali_classes"
  4. java -jar "%~dp0\3rd\baksmali-2.5.2.jar" d "%~dp0\..\app\build\intermediates\dex\release\minifyReleaseWithR8\classes.dex" -o "%~dp0\Smali_classes"
  5. rd /s/q "%~dp0\spider.jar\smali\com\github\catvod\spider"
  6. rd /s/q "%~dp0\spider.jar\smali\com\github\catvod\parser"
  7. if not exist "%~dp0\spider.jar\smali\com\github\catvod\" md "%~dp0\spider.jar\smali\com\github\catvod\"
  8. if "%1" == "ec" (
  9. java -Dfile.encoding=utf-8 -jar "%~dp0\3rd\oss.jar" "%~dp0\Smali_classes"
  10. )
  11. move "%~dp0\Smali_classes\com\github\catvod\spider" "%~dp0\spider.jar\smali\com\github\catvod\"
  12. move "%~dp0\Smali_classes\com\github\catvod\parser" "%~dp0\spider.jar\smali\com\github\catvod\"
  13. rd /s/q "%~dp0\Smali_classes"
  14. java -jar "%~dp0\3rd\apktool_2.4.1.jar" b "%~dp0\spider.jar" -c
  15. move "%~dp0\spider.jar\dist\dex.jar" "%~dp0\custom_spider.jar"
  16. certUtil -hashfile "%~dp0\custom_spider.jar" MD5 | find /i /v "md5" | find /i /v "certutil" > "%~dp0\custom_spider.jar.md5"
  17. rd /s/q "%~dp0\spider.jar\smali\com\github\catvod\spider"
  18. rd /s/q "%~dp0\spider.jar\smali\com\github\catvod\parser"
  19. rd /s/q "%~dp0\spider.jar\build"
  20. rd /s/q "%~dp0\spider.jar\dist"