fix shell script

This commit is contained in:
Vologhat
2023-01-01 18:12:46 +03:00
parent eb8939021d
commit 1e9a6c6840
+3 -5
View File
@@ -5,10 +5,8 @@ NC='\033[0m'
BOLD='\033[1m'
UNDERLINE='\033[4m'
cd ../
echo -e "${BOLD}${UNDERLINE}Decompile release APK...${NC}\n"
java -jar ../scripts/apktool.jar d VTLite.apk -f -o tmp -s --use-aapt2 -p ../scripts/framework/
java -jar ./apktool.jar d ./VTLite.apk -f -o ./tmp -s --use-aapt2 -p ./framework/
if [ $? -eq 0 ]; then
echo -e "${GREEN}Успех!${NC}\n"
else
@@ -17,7 +15,7 @@ else
fi
echo -e "${BOLD}${UNDERLINE}Regenerate R.java file...${NC}\n"
java -jar ../scripts/rclass-generator.jar -f ../scripts/tmp/res/values/public.xml -o ../scripts/app/src/main/java/com/vtosters/lite/R.java -p com.vtosters.lite --comments
java -jar ./rclass-generator.jar -f ./tmp/res/values/public.xml -o ../app/src/main/java/com/vtosters/lite/R.java -p com.vtosters.lite --comments
if [ $? -eq 0 ]; then
echo -e "${GREEN}Успех!${NC}\n"
else
@@ -26,7 +24,7 @@ else
fi
echo -e "${BOLD}${UNDERLINE}Clean temp dir...${NC}\n"
rm -rf ../scripts/tmp
rm -rf ./tmp
if [ $? -eq 0 ]; then
echo -e "${GREEN}Успех!${NC}\n"
else