1
0
Fork 0
mirror of https://github.com/Radiquum/anixart-patcher.git synced 2025-09-05 10:45:32 +05:00

feat: add separate util commands for patching and signing of apk

This commit is contained in:
Kentai Radiquum 2025-09-02 10:19:52 +05:00
parent df74e0cac2
commit 33df23c86a
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 42 additions and 18 deletions

View file

@ -79,6 +79,12 @@ def compile_apk(apk: str):
def sign_apk(apk: str):
log.info(f"sign and align apk: `{apk}`")
if os.path.exists(f"{config['folders']['dist']}/{apk.removesuffix('.apk')}-aligned.apk"):
os.remove(f"{config['folders']['dist']}/{apk.removesuffix('.apk')}-aligned.apk")
if os.path.exists(f"{config['folders']['dist']}/{apk.removesuffix('.apk')}-aligned-signed.apk"):
os.remove(f"{config['folders']['dist']}/{apk.removesuffix('.apk')}-aligned-signed.apk")
command = ""
try:
command = (