mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-01 14:47:56 +01:00
Fixed "apktool b" with default app_path argument.
This commit is contained in:
parent
6e7e0c0984
commit
fed7f763b9
@ -182,10 +182,9 @@ public class Main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void cmdBuild(CommandLine cli) throws BrutException {
|
private static void cmdBuild(CommandLine cli) throws BrutException {
|
||||||
int paraCount = cli.getArgList().size();
|
String[] args = cli.getArgs();
|
||||||
String apkName = (String) cli.getArgList().get(paraCount - 1);
|
String appDirName = args.length < 2 ? "." : args[1];
|
||||||
String mAaptPath = "";
|
String mAaptPath = "";
|
||||||
String appDirName = ".";
|
|
||||||
File outFile = null;
|
File outFile = null;
|
||||||
Androlib instance = new Androlib();
|
Androlib instance = new Androlib();
|
||||||
|
|
||||||
@ -223,10 +222,6 @@ public class Main {
|
|||||||
outFile = null;
|
outFile = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (apkName != null) {
|
|
||||||
appDirName = apkName;
|
|
||||||
}
|
|
||||||
|
|
||||||
// try and build apk
|
// try and build apk
|
||||||
instance.build(new File(appDirName), outFile, flags,mAaptPath);
|
instance.build(new File(appDirName), outFile, flags,mAaptPath);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user