diff --git a/build.bat b/build.bat index 72e0b5c6..93990eaf 100644 --- a/build.bat +++ b/build.bat @@ -1,4 +1,5 @@ @echo off +call "%~dp0\gradlew" clean call "%~dp0\gradlew" assembleRelease --no-daemon diff --git a/build.sh b/build.sh index c2efb5ff..7d34a74b 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,8 @@ chmod +x ./gradlew chmod +x ./jar/genJar.sh -./gradlew assembleRelease --no-daemon +./gradlew clean +./gradlew assembleRelease --no-daemon ./jar/genJar.sh diff --git a/jar/genJar.sh b/jar/genJar.sh index 328a2d94..082525fe 100755 --- a/jar/genJar.sh +++ b/jar/genJar.sh @@ -14,9 +14,9 @@ if [ ! -f "$DIR"/spider.jar/smali/com/github/catvod/ ]; then mkdir -p "$DIR"/spider.jar/smali/com/github/catvod/ fi -mv "$DIR"/Smali_classes/com/github/catvod/spider "$DIR"/spider.jar/smali/com/github/catvod/ -mv "$DIR"/Smali_classes/com/github/catvod/parser "$DIR"/spider.jar/smali/com/github/catvod/ -mv "$DIR"/Smali_classes/com/github/catvod/js "$DIR"/spider.jar/smali/com/github/catvod/ +cp -rf "$DIR"/Smali_classes/com/github/catvod/spider "$DIR"/spider.jar/smali/com/github/catvod/ +cp -rf "$DIR"/Smali_classes/com/github/catvod/parser "$DIR"/spider.jar/smali/com/github/catvod/ +cp -rf "$DIR"/Smali_classes/com/github/catvod/js "$DIR"/spider.jar/smali/com/github/catvod/ java -jar "$DIR"/3rd/apktool_2.4.1.jar b "$DIR"/spider.jar -c