From 3197700bc010e5db69e779e60c8938604a1a9912 Mon Sep 17 00:00:00 2001 From: Semyon Bezrukov Date: Fri, 21 Jul 2023 17:44:06 +0300 Subject: [PATCH] Fix bug #62960 / Fix zip sign (#715) --- scripts/package_desktop.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/package_desktop.py b/scripts/package_desktop.py index e5cf4a5..2feb7e7 100644 --- a/scripts/package_desktop.py +++ b/scripts/package_desktop.py @@ -126,11 +126,17 @@ def make_windows(): def make_zip(): utils.log_h2("desktop zip build") - args = ["-DesktopPath", desktop_dir, "-OutFile", zip_file] - if common.sign: - args += ["-Sign", "-CertName", branding.cert_name] + args = [ + "-OutFile", zip_file, + "-BuildDir", "build", + "-DesktopDir", branding.desktop_product_name_s + ] + if not branding.onlyoffice: + args += ["-MultimediaDir", branding.viewer_product_name_s] if branding.onlyoffice and not common.platform.endswith("_xp"): args += ["-ExcludeHelp"] + if common.sign: + args += ["-Sign", "-CertName", branding.cert_name] ret = utils.ps1( "make_zip.ps1", args, creates=zip_file, verbose=True )