Merge branch release/v9.2.0 into develop

This commit is contained in:
papacarlo
2025-12-10 10:29:26 +00:00
9 changed files with 55 additions and 23 deletions

View File

@ -37,7 +37,7 @@ def is_os_64bit():
return platform.machine().endswith('64') return platform.machine().endswith('64')
def is_os_arm(): def is_os_arm():
if -1 == platform.machine().find('arm'): if -1 == platform.machine().lower().find('arm'):
return False return False
return True return True
@ -1894,8 +1894,6 @@ def set_sysroot_env():
if "linux" == host_platform() and config.option("sysroot") != "": if "linux" == host_platform() and config.option("sysroot") != "":
os.environ['PATH'] = config.option("sysroot") + "/usr/bin:" + get_env("PATH") os.environ['PATH'] = config.option("sysroot") + "/usr/bin:" + get_env("PATH")
os.environ['LD_LIBRARY_PATH'] = config.get_custom_sysroot_lib() os.environ['LD_LIBRARY_PATH'] = config.get_custom_sysroot_lib()
os.environ['QMAKE_CUSTOM_SYSROOT'] = config.option("sysroot")
os.environ['PKG_CONFIG_PATH'] = config.get_custom_sysroot_lib() + "/pkgconfig"
os.environ['CC'] = config.get_custom_sysroot_bin() + "/gcc" os.environ['CC'] = config.get_custom_sysroot_bin() + "/gcc"
os.environ['CXX'] = config.get_custom_sysroot_bin() + "/g++" os.environ['CXX'] = config.get_custom_sysroot_bin() + "/g++"
os.environ['CFLAGS'] = "--sysroot=" + config.option("sysroot") os.environ['CFLAGS'] = "--sysroot=" + config.option("sysroot")

View File

@ -235,8 +235,7 @@ def make_xp():
base.replaceInFile("depot_tools/cipd.ps1", "windows-386", "windows-amd64") base.replaceInFile("depot_tools/cipd.ps1", "windows-386", "windows-amd64")
# old variant # old variant
#path_to_python2 = "/depot_tools/win_tools-2_7_13_chromium7_bin/python/bin" path_to_python2 = "/depot_tools/bootstrap-2@3_11_8_chromium_35_bin/python/bin"
path_to_python2 = "/depot_tools/bootstrap-2@3_8_10_chromium_23_bin/python/bin"
os.environ["PATH"] = os.pathsep.join([base_dir + "/depot_tools", os.environ["PATH"] = os.pathsep.join([base_dir + "/depot_tools",
base_dir + path_to_python2, base_dir + path_to_python2,
config.option("vs-path") + "/../Common7/IDE", config.option("vs-path") + "/../Common7/IDE",

View File

@ -7,6 +7,25 @@ import base
import os import os
import subprocess import subprocess
def clean():
if base.is_dir("depot_tools"):
base.delete_dir_with_access_error("depot_tools")
base.delete_dir("depot_tools")
if base.is_dir("v8"):
base.delete_dir_with_access_error("v8")
base.delete_dir("v8")
if base.is_exist("./.gclient"):
base.delete_file("./.gclient")
if base.is_exist("./.gclient_entries"):
base.delete_file("./.gclient_entries")
if base.is_exist("./.gclient_previous_sync_commits"):
base.delete_file("./.gclient_previous_sync_commits")
if base.is_exist("./.gcs_entries"):
base.delete_file("./.gcs_entries")
if base.is_exist("./.cipd"):
base.delete_dir("./.cipd")
return
def change_bootstrap(): def change_bootstrap():
base.move_file("./depot_tools/bootstrap/manifest.txt", "./depot_tools/bootstrap/manifest.txt.bak") base.move_file("./depot_tools/bootstrap/manifest.txt", "./depot_tools/bootstrap/manifest.txt.bak")
content = "# changed by build_tools\n\n" content = "# changed by build_tools\n\n"
@ -149,6 +168,8 @@ def make():
if not base.is_dir(base_dir): if not base.is_dir(base_dir):
base.create_dir(base_dir) base.create_dir(base_dir)
base.common_check_version("v8", "1", clean)
if ("mac" == base.host_platform()): if ("mac" == base.host_platform()):
base.cmd("git", ["config", "--global", "http.postBuffer", "157286400"], True) base.cmd("git", ["config", "--global", "http.postBuffer", "157286400"], True)

View File

@ -242,9 +242,11 @@ def make():
#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}") #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}")
base.copy_sdkjs_plugin(git_dir + "/desktop-sdk/ChromiumBasedEditors/plugins", root_dir + "/editors/sdkjs-plugins", "sendto", True) base.copy_sdkjs_plugin(git_dir + "/desktop-sdk/ChromiumBasedEditors/plugins", root_dir + "/editors/sdkjs-plugins", "sendto", True)
isUseAgent = False isUseAgent = True
if isWindowsXP: if isWindowsXP:
isUseAgent = False isUseAgent = False
if (0 == platform.find("mac")) and (config.check_option("config", "use_v8")):
isUseAgent = False
if (isUseAgent): if (isUseAgent):
agent_plugin_dir = git_dir + "/desktop-sdk/ChromiumBasedEditors/plugins/ai-agent" agent_plugin_dir = git_dir + "/desktop-sdk/ChromiumBasedEditors/plugins/ai-agent"

View File

@ -131,6 +131,8 @@ def make_tar():
make_args = ["tar"] make_args = ["tar"]
if common.platform == "darwin_arm64": if common.platform == "darwin_arm64":
make_args += ["-e", "UNAME_M=arm64"] make_args += ["-e", "UNAME_M=arm64"]
if common.platform == "darwin_x86_64":
make_args += ["-e", "UNAME_M=x86_64"]
if common.platform == "linux_aarch64": if common.platform == "linux_aarch64":
make_args += ["-e", "UNAME_M=aarch64"] make_args += ["-e", "UNAME_M=aarch64"]
if not branding.onlyoffice: if not branding.onlyoffice:

View File

@ -3,14 +3,14 @@
platformPrefixes = { platformPrefixes = {
"windows_x64": "win_64", "windows_x64": "win_64",
"windows_x86": "win_32", "windows_x86": "win_32",
"windows_arm64": "win_arm64",
"windows_x64_xp": "win_64_xp", "windows_x64_xp": "win_64_xp",
"windows_x86_xp": "win_32_xp", "windows_x86_xp": "win_32_xp",
"darwin_x86_64": "mac_64",
"darwin_arm64": "mac_arm64", "darwin_arm64": "mac_arm64",
"darwin_x86_64": "mac_64",
"darwin_x86_64_v8": "mac_64", "darwin_x86_64_v8": "mac_64",
"linux_x86_64": "linux_64", "linux_x86_64": "linux_64",
"linux_aarch64": "linux_arm64", "linux_aarch64": "linux_arm64",
"linux_x86_64_cef": "linux_64",
} }
out_dir = "build_tools/out" out_dir = "build_tools/out"

View File

@ -44,7 +44,8 @@ def make_windows():
"windows_x64": "x64", "windows_x64": "x64",
"windows_x64_xp": "x64", "windows_x64_xp": "x64",
"windows_x86": "x86", "windows_x86": "x86",
"windows_x86_xp": "x86" "windows_x86_xp": "x86",
"windows_arm64": "arm64"
}[common.platform] }[common.platform]
xp = common.platform.endswith("_xp") xp = common.platform.endswith("_xp")
@ -61,16 +62,17 @@ def make_windows():
if not xp: if not xp:
make_prepare() make_prepare()
make_zip() make_zip()
make_inno()
if branding.onlyoffice: if branding.onlyoffice:
make_inno()
make_inno("standalone") make_inno("standalone")
make_inno("update") if arch != "arm64":
make_advinst() make_inno("update")
make_advinst()
make_prepare("commercial") make_prepare("commercial")
make_zip("commercial") make_zip("commercial")
make_inno("commercial") make_inno("commercial")
make_advinst("commercial") make_advinst("commercial")
else: else:
make_prepare("xp") make_prepare("xp")
make_zip("xp") make_zip("xp")
@ -83,7 +85,8 @@ def make_prepare(edition = "opensource"):
args = [ args = [
"-Version", package_version, "-Version", package_version,
"-Arch", arch, "-Arch", arch,
"-Target", edition "-Target", edition,
"-CompanyName", branding.company_name
] ]
if common.sign: if common.sign:
args += ["-Sign"] args += ["-Sign"]
@ -101,7 +104,8 @@ def make_zip(edition = "opensource"):
args = [ args = [
"-Version", package_version, "-Version", package_version,
"-Arch", arch, "-Arch", arch,
"-Target", edition "-Target", edition,
"-CompanyName", branding.company_name
] ]
# if common.sign: # if common.sign:
# args += ["-Sign"] # args += ["-Sign"]
@ -329,7 +333,9 @@ def make_linux():
if common.deploy: if common.deploy:
for t in branding.desktop_make_targets: for t in branding.desktop_make_targets:
utils.log_h2("desktop " + edition + " " + t["make"] + " deploy") utils.log_h2("desktop " + edition + " " + t["make"] + " deploy")
ret = s3_upload(utils.glob_path(t["src"]), t["dst"]) ret = s3_upload(
[i for i in utils.glob_path(t["src"]) if "enterprise-help" not in i],
t["dst"])
utils.set_summary("desktop " + edition + " " + t["make"] + " deploy", ret) utils.set_summary("desktop " + edition + " " + t["make"] + " deploy", ret)
utils.set_cwd(common.workspace_dir) utils.set_cwd(common.workspace_dir)

View File

@ -100,11 +100,15 @@ def make(platform, project, qmake_config_addon="", is_no_errors=False):
if "1" == config.option("use-clang"): if "1" == config.option("use-clang"):
build_params.append("-spec") build_params.append("-spec")
build_params.append("linux-clang-libc++") build_params.append("linux-clang-libc++")
if "" != config.option("sysroot"):
os.environ['QMAKE_CUSTOM_SYSROOT'] = config.option("sysroot")
os.environ['PKG_CONFIG_PATH'] = config.get_custom_sysroot_lib() + "/pkgconfig"
base.cmd_exe(qmake_app, build_params)
if "" != config.option("sysroot"): if "" != config.option("sysroot"):
base.set_sysroot_env() base.set_sysroot_env()
base.cmd_exe(qmake_app, build_params) # calls cmd_exe to pass os.env
else:
base.cmd(qmake_app, build_params)
base.correct_makefile_after_qmake(platform, makefile) base.correct_makefile_after_qmake(platform, makefile)
if ("1" == config.option("clean")): if ("1" == config.option("clean")):

View File

@ -1 +1 @@
9.1.0 9.2.0