# 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/.
---
bucket_paths:
    by-platform:
        .*devedition.*:
            - pub/devedition/nightly
        default:
            - pub/firefox/nightly
default_locales:  # if given an empty locale, use these locales
    - en-US
tasktype_map:  # Map task reference to task type.
    beetmover-repackage: beetmover
platform_names:
    filename_platform:
        by-platform:
            linux64-shippable: 'linux-x86_64'
            linux64-aarch64-shippable: 'linux-aarch64'
            linux64-aarch64-devedition: 'linux-aarch64'
            linux64-devedition: 'linux-x86_64'
            macosx64-shippable: 'mac'
            macosx64-devedition: 'mac'
            win32-shippable: 'win32'
            win32-devedition: 'win32'
            win64-shippable: 'win64'
            win64-devedition: 'win64'
            win64-aarch64-shippable: 'win64-aarch64'
            win64-aarch64-devedition: 'win64-aarch64'

# A default entry, which the mappings below extend and override.
# Final 'destinations' will be the product of:
# bucket_paths + destinations + locale_prefix + pretty_name
default: &default
    from:
        - beetmover-repackage
    all_locales: true
    description: "TO_BE_OVERRIDDEN"
    locale_prefix: ''
    source_path_modifier: ''
    destinations:  # locale_prefix is appended
        by-locale:
            en-US:
                - ${year}/${month}/${upload_date}-${branch}
                - latest-${branch}
                - latest-${branch}-l10n
            default:
                - ${year}/${month}/${upload_date}-${branch}-l10n
                - latest-${branch}-l10n

# Configuration for individual files. Extends 'default', above.
mapping:
    target.checksums:
        <<: *default
        description: "Checksums file containing size, hash, sha algorithm and filename"
        pretty_name: firefox-${version}.${locale}.${filename_platform}.checksums
        checksums_path: firefox-${version}.${locale}.${filename_platform}.checksums
