fix(apktool): accept --no-strings CLI option (#2707)

This commit is contained in:
Avocado
2026-10-13 16:20:03 +08:00
committed by GitHub
parent 11f1d952e7
commit 11f8b76257
2 changed files with 91 additions and 4 deletions
+6 -4
View File
@@ -62,15 +62,17 @@ export const registerApktoolCommands = (
.describe(
"Project strings from res/values-<locale> instead of the default",
),
"no-strings": z
strings: z
.boolean()
.default(false)
.describe("Skip projecting string resources"),
.default(true)
.describe(
"Include string resources; use --no-strings to skip projecting them",
),
}),
run: ({ args, options }) =>
execute(CLI_COMMANDS.decodeAndroidResources, "decode_android_resources", {
path: args.path,
include_strings: !options["no-strings"],
include_strings: options.strings,
...(options.locale === undefined ? {} : { locale: options.locale }),
}),
});