chore: add support for .tipa

This commit is contained in:
zx
2024-10-14 21:08:34 -04:00
parent 4e05892e1d
commit 5f37ab3f23
3 changed files with 14 additions and 10 deletions

View File

@@ -17,10 +17,11 @@ HAS_UNZIP = shutil.which("unzip") is not None
def validate_inputs(args: Namespace) -> Optional[str]:
if not (
args.i.endswith(".ipa")
or args.i.endswith(".app")
args.i.endswith(".app")
or args.i.endswith(".ipa")
or args.i.endswith(".tipa")
):
return "the input file must be an ipa/app"
return "the input file must be an ipa/tipa/app"
if not os.path.exists(args.i):
return f"{args.i} does not exist"