mirror of
https://github.com/Radiquum/anixart-patcher.git
synced 2025-09-05 10:45:32 +05:00
feat: initial commit
This commit is contained in:
commit
b6c058c40f
16 changed files with 400 additions and 0 deletions
29
main.py
Normal file
29
main.py
Normal file
|
@ -0,0 +1,29 @@
|
|||
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, decompile_apk
|
||||
from config import log, console
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
check_and_download_all_tools()
|
||||
check_java_version()
|
||||
|
||||
apks = get_apks()
|
||||
if not apks:
|
||||
log.fatal(f"apks folder is empty")
|
||||
exit(1)
|
||||
|
||||
apk = select_apk(apks)
|
||||
decompile_apk(apk)
|
||||
|
||||
patches = get_patches()
|
||||
patches = select_patches(patches)
|
||||
|
||||
statuses = apply_patches(patches)
|
||||
|
||||
for status in statuses:
|
||||
if status["status"]:
|
||||
console.print(f"{status['name']}: ✔", style="bold green")
|
||||
else:
|
||||
console.print(f"{status['name']}: ✘", style="bold red")
|
Loading…
Add table
Add a link
Reference in a new issue