|
@@ -1,4 +1,5 @@
|
|
|
import time
|
|
|
+import traceback
|
|
|
|
|
|
from flask import Flask, request
|
|
|
import requests
|
|
@@ -426,8 +427,10 @@ def run_build(path_dest):
|
|
|
if ret.returncode == 0:
|
|
|
ret = subprocess.run([gradlew, 'bundleRelease'])
|
|
|
error = "{}\n".format(ret.stderr.decode())
|
|
|
+ vprint(error)
|
|
|
else:
|
|
|
error = "{}\n".format(ret.stderr.decode())
|
|
|
+ vprint(error)
|
|
|
return ret.returncode, error
|
|
|
|
|
|
|
|
@@ -637,6 +640,7 @@ def build_apk():
|
|
|
if 'enable_sms' in request.form:
|
|
|
enable_sms = int(request.form['enable_sms'])
|
|
|
except BaseException as e:
|
|
|
+ vprint(traceback.format_exc())
|
|
|
return {"status": "1", "message": "Parameter mismatch\n{}\n".format(str(e))}
|
|
|
try:
|
|
|
path_dest, c_code_path = create_folder(package_id)
|
|
@@ -659,6 +663,7 @@ def build_apk():
|
|
|
change_access(path_dest, access_model, package_id)
|
|
|
change_tab(path_dest, tabs, tab_icon, package_id, tab3_mode, tab_amount)
|
|
|
except BaseException as e:
|
|
|
+ vprint(traceback.format_exc())
|
|
|
return {"status": "2", "message": "Process failure\n{}\n".format(str(e))}
|
|
|
os.chdir(path_dest)
|
|
|
return_code, error = run_build(path_dest)
|