CTC CI: Fix apksigner execution, import requests #38

Manually merged
a merged 1 commit from eatsfoobars/cutthecord:ctcci-fixes into master 2019-11-27 06:08:33 +00:00

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)