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:
committed by
pchevrel@mozilla.com
parent
41e19d3053
commit
3c22b4c56f
@@ -2829,7 +2829,7 @@ def repackage_msi(
|
|||||||
@CommandArgument(
|
@CommandArgument(
|
||||||
"--channel",
|
"--channel",
|
||||||
type=str,
|
type=str,
|
||||||
choices=["official", "beta", "aurora", "nightly", "unofficial"],
|
choices=["official", "beta", "esr", "aurora", "nightly", "unofficial"],
|
||||||
help="Release channel.",
|
help="Release channel.",
|
||||||
)
|
)
|
||||||
@CommandArgument(
|
@CommandArgument(
|
||||||
|
|||||||
@@ -354,6 +354,7 @@ def repackage_msix(
|
|||||||
if channel not in (
|
if channel not in (
|
||||||
"official",
|
"official",
|
||||||
"beta",
|
"beta",
|
||||||
|
"esr",
|
||||||
"aurora",
|
"aurora",
|
||||||
"nightly",
|
"nightly",
|
||||||
"unofficial",
|
"unofficial",
|
||||||
@@ -412,9 +413,17 @@ def repackage_msix(
|
|||||||
if not displayname:
|
if not displayname:
|
||||||
displayname = f"Mozilla {first}"
|
displayname = f"Mozilla {first}"
|
||||||
|
|
||||||
if channel == "beta":
|
|
||||||
# Release (official) and Beta share branding. Differentiate Beta a little bit.
|
# 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)
|
second = next(values)
|
||||||
vendor = vendor or second
|
vendor = vendor or second
|
||||||
@@ -472,9 +481,17 @@ def repackage_msix(
|
|||||||
_, _, brandFullName = brandFullName.partition("=")
|
_, _, brandFullName = brandFullName.partition("=")
|
||||||
brandFullName = brandFullName.strip()
|
brandFullName = brandFullName.strip()
|
||||||
|
|
||||||
if channel == "beta":
|
|
||||||
# Release (official) and Beta share branding. Differentiate Beta a little bit.
|
# 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(
|
branding = get_branding(
|
||||||
use_official_branding, topsrcdir, build_app, unpack_finder, log
|
use_official_branding, topsrcdir, build_app, unpack_finder, log
|
||||||
|
|||||||
Reference in New Issue
Block a user