mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 17:27:41 +01:00
added -version to print out raw version number
This commit is contained in:
parent
39a9bf054c
commit
dbce4479b2
1
CHANGES
1
CHANGES
@ -9,6 +9,7 @@ v1.5.2 (TBA)
|
|||||||
-Fixed (issue #395) - Added check for "aapt" in unit-tests.
|
-Fixed (issue #395) - Added check for "aapt" in unit-tests.
|
||||||
-Added ability to use "--frame-path" on [if|install-framework]
|
-Added ability to use "--frame-path" on [if|install-framework]
|
||||||
-Fixed renaming of ".r.9.png" images -> ".9.png".
|
-Fixed renaming of ".r.9.png" images -> ".9.png".
|
||||||
|
-Added ability to use --version to print out Apktool version
|
||||||
|
|
||||||
v1.5.1 PR3 (Released December 23 - 2012) Codename: Pre Release 3
|
v1.5.1 PR3 (Released December 23 - 2012) Codename: Pre Release 3
|
||||||
-Reverted "Prevents removal of <uses-sdk> on decompile, but then throws warning on rebuild (issue #366)"
|
-Reverted "Prevents removal of <uses-sdk> on decompile, but then throws warning on rebuild (issue #366)"
|
||||||
|
@ -43,6 +43,11 @@ public class Main {
|
|||||||
int i;
|
int i;
|
||||||
for (i = 0; i < args.length; i++) {
|
for (i = 0; i < args.length; i++) {
|
||||||
String opt = args[i];
|
String opt = args[i];
|
||||||
|
|
||||||
|
if (opt.startsWith("--version") || (opt.startsWith("-version"))) {
|
||||||
|
version_print();
|
||||||
|
System.exit(1);
|
||||||
|
}
|
||||||
if (! opt.startsWith("-")) {
|
if (! opt.startsWith("-")) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -258,6 +263,11 @@ public class Main {
|
|||||||
new Androlib().publicizeResources(new File(args[0]));
|
new Androlib().publicizeResources(new File(args[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void version_print() {
|
||||||
|
System.out.println(
|
||||||
|
Androlib.getVersion());
|
||||||
|
}
|
||||||
|
|
||||||
private static void usage() {
|
private static void usage() {
|
||||||
System.out.println(
|
System.out.println(
|
||||||
"Apktool v" + Androlib.getVersion() + " - a tool for reengineering Android apk files\n" +
|
"Apktool v" + Androlib.getVersion() + " - a tool for reengineering Android apk files\n" +
|
||||||
@ -314,8 +324,6 @@ public class Main {
|
|||||||
" Build in debug mode. Check project page for more info.\n" +
|
" Build in debug mode. Check project page for more info.\n" +
|
||||||
" -a, --aapt\n" +
|
" -a, --aapt\n" +
|
||||||
" Loads aapt from specified location.\n" +
|
" Loads aapt from specified location.\n" +
|
||||||
// " -o, --original\n" +
|
|
||||||
// " Build resources into original APK. Retains signature." +
|
|
||||||
"\n" +
|
"\n" +
|
||||||
" if|install-framework <framework.apk> [<tag>] --frame-path [<location>] \n" +
|
" if|install-framework <framework.apk> [<tag>] --frame-path [<location>] \n" +
|
||||||
" Install framework file to your system.\n" +
|
" Install framework file to your system.\n" +
|
||||||
@ -356,6 +364,8 @@ public class Main {
|
|||||||
private static enum Verbosity {
|
private static enum Verbosity {
|
||||||
NORMAL, VERBOSE, QUIET;
|
NORMAL, VERBOSE, QUIET;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static boolean Advanced = false;
|
||||||
|
|
||||||
static class InvalidArgsError extends AndrolibException {
|
static class InvalidArgsError extends AndrolibException {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user