Bug 1991990: Update MSIX Packaging Branding a=pascalc DONTBUILD

Thunderbird already uses a " Beta" suffix in its branding. Only add a " Beta" suffix if one does not already exist.

Also adds an esr channel with a corresponding " ESR" suffix if one does not aleady exist in the products branding.

Original Revision: https://phabricator.services.mozilla.com/D268806

Differential Revision: https://phabricator.services.mozilla.com/D270627
This commit is contained in:
Stephen King
2025-10-30 08:48:42 +00:00
committed by pchevrel@mozilla.com
parent 41e19d3053
commit 3c22b4c56f
2 changed files with 22 additions and 5 deletions

View File

@@ -2829,7 +2829,7 @@ def repackage_msi(
@CommandArgument(
"--channel",
type=str,
choices=["official", "beta", "aurora", "nightly", "unofficial"],
choices=["official", "beta", "esr", "aurora", "nightly", "unofficial"],
help="Release channel.",
)
@CommandArgument(

View File

@@ -354,6 +354,7 @@ def repackage_msix(
if channel not in (
"official",
"beta",
"esr",
"aurora",
"nightly",
"unofficial",
@@ -412,9 +413,17 @@ def repackage_msix(
if not displayname:
displayname = f"Mozilla {first}"
if channel == "beta":
# Release (official) and Beta share branding. Differentiate Beta a little bit.
displayname += " Beta"
if channel == "beta":
suffix = " Beta"
if not displayname.endswith(suffix):
displayname += suffix
elif channel == "esr":
# Release (official) and ESR share branding. Differentiate ESR a little bit.
suffix = " ESR"
if not displayname.endswith(suffix):
displayname += suffix
second = next(values)
vendor = vendor or second
@@ -472,9 +481,17 @@ def repackage_msix(
_, _, brandFullName = brandFullName.partition("=")
brandFullName = brandFullName.strip()
if channel == "beta":
# Release (official) and Beta share branding. Differentiate Beta a little bit.
brandFullName += " Beta"
if channel == "beta":
suffix = " Beta"
if not brandFullName.endswith(suffix):
brandFullName += suffix
elif channel == "esr":
# Release (official) and ESR share branding. Differentiate ESR a little bit.
suffix = " ESR"
if not brandFullName.endswith(suffix):
brandFullName += suffix
branding = get_branding(
use_official_branding, topsrcdir, build_app, unpack_finder, log