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: eatsfoobars
GPG key ID: D08609FADBD8C395

View file

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