diff --git a/README.md b/README.md index d8a4de9..4daccda 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ more coming soon! i'm trying to copy pyzule in order to deprecate it in favor of - inject deb, dylib, framework, bundle, and appex files/folders - automatically fix dependencies on CydiaSubstrate **(cyan uses [ElleKit](https://github.com/evelyneee/ellekit/)!)**, Cephei*, and Orion - copy any unknown file/folder types to app root +- change app name, version, bundle id, and minimum os version - remove UISupportedDevices - remove watch app - fakesign the output ipa/app @@ -45,5 +46,7 @@ then finally, to install or update cyan, just `pip install --force-reinstall git [x] feat: plugin operations (-q, -e) +[] feat: change app icon + [] feat: .cyan files (lol rip .pyzule files) diff --git a/cyan/tbhutils.py b/cyan/tbhutils.py index ed9399b..ef9e15d 100644 --- a/cyan/tbhutils.py +++ b/cyan/tbhutils.py @@ -48,6 +48,12 @@ def validate_inputs(args: Namespace) -> Optional[str]: print(f"[?] - {ne}") sys.exit(1) + if ( + args.m is not None + and any(char not in "0123456789." for char in args.m) + ): + sys.exit(f"[!] invalid OS version: {args.m}") + def get_app(path: str, tmpdir: str, is_ipa: bool) -> str: payload = f"{tmpdir}/Payload"