CTC CI: Fix apksigner execution, import requests

This commit is contained in:
eatsfoobars 2019-11-26 22:53:26 +00:00
parent 50b3f050c4
commit e464c9a283
Signed by untrusted user: eatsfoobars
GPG key ID: D08609FADBD8C395

View file

@ -2,6 +2,7 @@
import os
import sys
import shutil
import requests
import json
import subprocess
from ctcconfig import *
@ -231,9 +232,9 @@ APK_PATH = os.path.join(WORK_FOLDER, "discord",
# Sign the APK
if DO_APKSIGNER:
subprocess.run(f"apksigner sign --ks {KEYSTORE_FILE}"
subprocess.run(f"apksigner sign --ks {KEYSTORE_FILE} "
f"--ks-key-alias {KEYSTORE_ALIAS} "
f"--ks-pass pass:{KEYSTORE_PASS}"
f"--ks-pass pass:{KEYSTORE_PASS} "
f"{APK_PATH}",
shell=True,
cwd=WORK_FOLDER)