Skip to content

Commit 46202ce

Browse files
committed
Merge branch release/v6.2.0 into develop
2 parents 1cf2095 + 807f5a6 commit 46202ce

File tree

7 files changed

+714
-19
lines changed

7 files changed

+714
-19
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Bug Report
3+
about: Report an issue with build_tools you've discovered.
4+
---
5+
6+
**Describe your problem**:
7+
8+
*Be clear in your description of the problem.
9+
Open an issue with a descriptive title and a summary in complete sentences.*
10+
11+
*Use the template below when reporting bugs. Please, make sure that
12+
you're fetched latest master of build_tools and that the problem you're reporting
13+
hasn't been reported (and potentially fixed) already.*
14+
15+
*Before filing the ticket you should replace all cursive text with your own words.*
16+
17+
**Steps to reproduce the problem**:
18+
19+
*Please make sure your error can be reproduced, Docker can be a great help*
20+
21+
**build_tools base repo version**:
22+
23+
**Operating system**:
24+
25+
**Compiler version**:

LICENSE.txt

+661
Large diffs are not rendered by default.

build.pro

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ OO_BRANDING_SUFFIX = $$(OO_BRANDING)
2323
MAKEFILE=$$join(MAKEFILE, , , "$$OO_BRANDING_SUFFIX")
2424
}
2525

26+
message(current_makefile)
27+
message($$MAKEFILE)
28+
2629
CONFIG += ordered
2730

2831
core_windows {

scripts/base.py

+12-5
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,12 @@ def cmd_in_dir(directory, prog, args=[], is_no_errors=False):
307307
os.chdir(cur_dir)
308308
return ret
309309

310+
def cmd_and_return_cwd(prog, args=[], is_no_errors=False):
311+
cur_dir = os.getcwd()
312+
ret = cmd(prog, args, is_no_errors)
313+
os.chdir(cur_dir)
314+
return ret
315+
310316
def run_command(sCommand):
311317
popen = subprocess.Popen(sCommand, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
312318
result = {'stdout' : '', 'stderr' : ''}
@@ -452,15 +458,16 @@ def create_pull_request(branches_to, repo, is_no_errors=False, is_current_dir=Fa
452458
is_not_exit = True
453459
old_cur = os.getcwd()
454460
os.chdir(folder)
455-
cmd("git", ["checkout", "-f", config.option("branch")], is_no_errors)
461+
branch_from = config.option("branch")
462+
cmd("git", ["checkout", "-f", branch_from], is_no_errors)
456463
cmd("git", ["pull"], is_no_errors)
457464
for branch_to in branches_to:
458-
if "" != run_command("git log origin/" + branch_to + "..origin/" + config.option("branch"))["stdout"]:
465+
if "" != run_command("git log origin/" + branch_to + "..origin/" + branch_from)["stdout"]:
459466
cmd("git", ["checkout", "-f", branch_to], is_no_errors)
460467
cmd("git", ["pull"], is_no_errors)
461-
cmd("hub", ["pull-request", "--force", "--base", branch_to, "--head", config.option("branch"), "--no-edit"], is_no_errors)
462-
if 0 != cmd("git", ["merge", "origin/" + config.option("branch"), "--no-ff", "--no-edit"], is_no_errors):
463-
print_error("[git] Conflicts merge " + "origin/" + config.option("branch") + " to " + branch_to + " in repo " + url)
468+
cmd("hub", ["pull-request", "--force", "--base", branch_to, "--head", branch_from, "--message", "Merge from " + branch_from + " to " + branch_to], is_no_errors)
469+
if 0 != cmd("git", ["merge", "origin/" + branch_from, "--no-ff", "--no-edit"], is_no_errors):
470+
print_error("[git] Conflicts merge " + "origin/" + branch_from + " to " + branch_to + " in repo " + url)
464471
cmd("git", ["merge", "--abort"], is_no_errors)
465472
else:
466473
cmd("git", ["push"], is_no_errors)

scripts/build.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,26 @@ def make_pro_file(makefiles_dir, pro_file):
5858

5959
# non windows platform
6060
if not base.is_windows():
61-
if ("1" == config.option("clean")):
62-
base.cmd(base.app_make(), ["clean", "-f", makefiles_dir + "/build.makefile_" + file_suff], True)
63-
base.cmd(base.app_make(), ["distclean", "-f", makefiles_dir + "/build.makefile_" + file_suff], True)
64-
6561
if base.is_file(makefiles_dir + "/build.makefile_" + file_suff):
6662
base.delete_file(makefiles_dir + "/build.makefile_" + file_suff)
67-
base.cmd(qt_dir + "/bin/qmake", ["-nocache", pro_file, "CONFIG+=" + config_param] + qmake_addon)
68-
base.cmd(base.app_make(), ["-f", makefiles_dir + "/build.makefile_" + file_suff])
63+
print("make file: " + makefiles_dir + "/build.makefile_" + file_suff)
64+
base.cmd(qt_dir + "/bin/qmake", ["-nocache", pro_file, "CONFIG+=" + config_param] + qmake_addon)
65+
if ("1" == config.option("clean")):
66+
base.cmd_and_return_cwd(base.app_make(), ["clean", "-f", makefiles_dir + "/build.makefile_" + file_suff], True)
67+
base.cmd_and_return_cwd(base.app_make(), ["distclean", "-f", makefiles_dir + "/build.makefile_" + file_suff], True)
68+
base.cmd(qt_dir + "/bin/qmake", ["-nocache", pro_file, "CONFIG+=" + config_param] + qmake_addon)
69+
base.cmd_and_return_cwd(base.app_make(), ["-f", makefiles_dir + "/build.makefile_" + file_suff])
6970
else:
7071
qmake_bat = []
7172
qmake_bat.append("call \"" + config.option("vs-path") + "/vcvarsall.bat\" " + ("x86" if base.platform_is_32(platform) else "x64"))
72-
if ("1" == config.option("clean")):
73-
qmake_bat.append("call nmake clean -f " + makefiles_dir + "/build.makefile_" + file_suff)
74-
qmake_bat.append("call nmake distclean -f " + makefiles_dir + "/build.makefile_" + file_suff)
73+
qmake_bat.append("if exist ./" + makefiles_dir + "/build.makefile_" + file_suff + " del /F ./" + makefiles_dir + "/build.makefile_" + file_suff)
7574
qmake_addon_string = ""
7675
if ("" != config.option("qmake_addon")):
7776
qmake_addon_string = " \"" + config.option("qmake_addon") + "\""
78-
qmake_bat.append("if exist ./" + makefiles_dir + "/build.makefile_" + file_suff + " del /F ./" + makefiles_dir + "/build.makefile_" + file_suff)
7977
qmake_bat.append("call \"" + qt_dir + "/bin/qmake\" -nocache " + pro_file + " \"CONFIG+=" + config_param + "\"" + qmake_addon_string)
78+
if ("1" == config.option("clean")):
79+
qmake_bat.append("call nmake clean -f " + makefiles_dir + "/build.makefile_" + file_suff)
80+
qmake_bat.append("call nmake distclean -f " + makefiles_dir + "/build.makefile_" + file_suff)
8081
qmake_bat.append("call nmake -f " + makefiles_dir + "/build.makefile_" + file_suff)
8182
base.run_as_bat(qmake_bat)
8283

scripts/deploy_desktop.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,7 @@ def make():
178178
base.copy_sdkjs_plugin(git_dir + "/desktop-sdk/ChromiumBasedEditors/plugins/encrypt", root_dir + "/editors/sdkjs-plugins", "advanced2", True)
179179
#base.copy_dir(git_dir + "/desktop-sdk/ChromiumBasedEditors/plugins/encrypt/ui/common/{14A8FC87-8E26-4216-B34E-F27F053B2EC4}", root_dir + "/editors/sdkjs-plugins/{14A8FC87-8E26-4216-B34E-F27F053B2EC4}")
180180
#base.copy_dir(git_dir + "/desktop-sdk/ChromiumBasedEditors/plugins/encrypt/ui/engine/database/{9AB4BBA8-A7E5-48D5-B683-ECE76A020BB1}", root_dir + "/editors/sdkjs-plugins/{9AB4BBA8-A7E5-48D5-B683-ECE76A020BB1}")
181-
182-
if (0 != platform.find("mac")):
183-
base.copy_sdkjs_plugin(git_dir + "/desktop-sdk/ChromiumBasedEditors/plugins", root_dir + "/editors/sdkjs-plugins", "sendto", True)
181+
base.copy_sdkjs_plugin(git_dir + "/desktop-sdk/ChromiumBasedEditors/plugins", root_dir + "/editors/sdkjs-plugins", "sendto", True)
184182

185183
base.copy_file(base_dir + "/js/" + branding + "/desktop/index.html", root_dir + "/index.html")
186184
base.copy_dir(git_dir + "/desktop-apps/common/loginpage/providers", root_dir + "/providers")

tools/linux/automate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def install_deps():
5555
base.download("https://deb.nodesource.com/setup_10.x", "./node_js_setup_10.x")
5656
base.cmd("sudo", ["bash", "./node_js_setup_10.x"])
5757
base.cmd("sudo", ["apt-get", "install", "-y", "nodejs"])
58-
base.cmd("sudo", ["npm", "install", "-g", "npm"])
58+
base.cmd("sudo", ["npm", "install", "-g", "npm@6"])
5959
base.cmd("sudo", ["npm", "install", "-g", "grunt-cli"])
6060
base.cmd("sudo", ["npm", "install", "-g", "pkg"])
6161

0 commit comments

Comments
 (0)