mirror of
https://github.com/Radiquum/anixart-patcher.git
synced 2025-09-05 10:45:32 +05:00
feat: add patch init arg
This commit is contained in:
parent
2fef0a32b7
commit
2c8af07a67
3 changed files with 69 additions and 7 deletions
6
main.py
6
main.py
|
@ -1,7 +1,7 @@
|
|||
from scripts.download_tools import check_and_download_all_tools
|
||||
from scripts.select_apk import get_apks, select_apk
|
||||
from scripts.select_patches import apply_patches, get_patches, select_patches
|
||||
from scripts.utils import check_java_version, compile_apk, decompile_apk, sign_apk
|
||||
from scripts.utils import check_java_version, compile_apk, decompile_apk, sign_apk, init_patch
|
||||
from config import args, config, log, console
|
||||
|
||||
from time import time
|
||||
|
@ -29,6 +29,10 @@ def patch():
|
|||
if __name__ == "__main__":
|
||||
check_and_download_all_tools()
|
||||
check_java_version()
|
||||
|
||||
if args.init:
|
||||
init_patch()
|
||||
exit(0)
|
||||
|
||||
if not args.patch and not args.sign:
|
||||
apks = get_apks()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue