Commit 09ab75a5 authored by Avi Drissman's avatar Avi Drissman Committed by Commit Bot

Mac packaging: make distributions that can share app bundles do so

Bug: 1142508
Change-Id: I8e310994740653c0d5174528b5b0ef36e9b0e32b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2499881Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Reviewed-by: default avatarMark Mentovai <mark@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#822666}
parent 5beedd01
...@@ -227,6 +227,18 @@ class Distribution(object): ...@@ -227,6 +227,18 @@ class Distribution(object):
self.package_as_dmg = package_as_dmg self.package_as_dmg = package_as_dmg
self.package_as_pkg = package_as_pkg self.package_as_pkg = package_as_pkg
def brandless_copy(self):
"""Derives and returns a copy of this Distribution object, identical
except for not having a branding code.
This is useful in the case where a non-branded app bundle needs to be
created with otherwise the same configuration.
"""
return Distribution(self.channel, None, self.app_name_fragment,
self.packaging_name_fragment, self.product_dirname,
self.creator_code, self.channel_customize,
self.package_as_dmg, self.package_as_pkg)
def to_config(self, base_config): def to_config(self, base_config):
"""Produces a derived |config.CodeSignConfig| for the Distribution. """Produces a derived |config.CodeSignConfig| for the Distribution.
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment