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:
parent
df74e0cac2
commit
33df23c86a
2 changed files with 42 additions and 18 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue