Commit de10bf98 authored by Heitor Neiva's avatar Heitor Neiva
Browse files

Bug 1774273 - Transition mac notarization to signingscript r=taskgraph-reviewers,bhearsum

parent 0e8d6473
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -512,12 +512,17 @@ class RepackMac(RepackBase):
        self.appName = self.getAppName()

    def getAppName(self):
        # Cope with Firefox.app vs Firefox Nightly.app by returning the first line that
        # ends with .app
        # Cope with Firefox.app vs Firefox Nightly.app by returning the first root object/folder found
        t = tarfile.open(self.build.rsplit(".", 1)[0])
        for name in t.getnames():
            if name.endswith(".app"):
                return name
            root_object = name.split("/")[0]
            if root_object.endswith(".app"):
                log.info(f"Found app name in tarball: {root_object}")
                return root_object
        log.error(
            f"Error: Unable to determine app name from tarball: {self.build} - Expected .app in root"
        )
        sys.exit(1)

    def copyFiles(self):
        super(RepackMac, self).copyFiles(Path(self.appName) / MAC_DEST_DIR)
+4 −0
Original line number Diff line number Diff line
@@ -15,10 +15,14 @@ transforms:
kind-dependencies:
    - build
    - build-signing
    - build-mac-signing
    - build-mac-notarization
    - repackage
    - repackage-signing
    - shippable-l10n
    - shippable-l10n-signing
    - shippable-l10n-mac-signing
    - shippable-l10n-mac-notarization
    - repackage-l10n
    - repackage-signing-l10n
    - partials
+3 −1
Original line number Diff line number Diff line
@@ -14,11 +14,13 @@ kind-dependencies:
    - build

only-for-attributes:
    - shippable
    - enable-build-signing

only-for-build-platforms:
    - macosx64-shippable/opt
    - macosx64-devedition/opt
    - macosx64/opt
    - macosx64/debug

job-template:
    treeherder:
+0 −27
Original line number Diff line number Diff line
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: gecko_taskgraph.loader.single_dep:loader

transforms:
    - gecko_taskgraph.transforms.name_sanity:transforms
    - gecko_taskgraph.transforms.build_signing:transforms
    - gecko_taskgraph.transforms.signing:transforms
    - gecko_taskgraph.transforms.task:transforms

kind-dependencies:
    - build

only-for-attributes:
    - shippable
    - nightly

only-for-build-platforms:
    - macosx64-shippable/opt
    - macosx64-devedition/opt

job-template:
    treeherder:
        symbol: BN
    enable-signing-routes: false
+0 −19
Original line number Diff line number Diff line
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: gecko_taskgraph.loader.single_dep:loader

transforms:
    - gecko_taskgraph.transforms.mac_notarization_poller:transforms
    - gecko_taskgraph.transforms.task:transforms

kind-dependencies:
    - build-notarization-part-1

job-template:
    treeherder:
        symbol: BN-poll
    description-suffix: 'Mac Notarization Poller'
    worker:
        implementation: notarization-poller
Loading