17 lines
432 B
Python
17 lines
432 B
Python
|
from .util import *
|
||
|
from .merge_resources import merge_resources
|
||
|
|
||
|
import subprocess
|
||
|
|
||
|
def assemble_apk():
|
||
|
updated = merge_resources()
|
||
|
|
||
|
if not updated and Path(ASSEMBLED_APK).exists():
|
||
|
print("Skipping assembly")
|
||
|
return False
|
||
|
|
||
|
# Assemble
|
||
|
print("Assembling APK...")
|
||
|
_ = subprocess.run([JAVA_BIN, '-jar', APKTOOL, 'b', MERGED_RSC_DIR, '-o', ASSEMBLED_APK])
|
||
|
|
||
|
return True
|