Closed Bug 1789178 Opened 2 years ago Closed 2 years ago

Replace hardcoded `firefox` and `browser` instances in MSIX packaging

Categories

(Firefox :: Installer, enhancement, P5)

enhancement

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: rjl, Assigned: rjl)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This is to facilitate repackaging Thunderbird as an MSIX.

mozbuild/mozbuild/repackaging/msix.py contains a couple of places where firefox is hardcoded:
https://searchfox.org/mozilla-central/rev/39a48ce1b2b20a004dfa364d0587164f838b62b0/python/mozbuild/mozbuild/repackaging/msix.py#479,529

These can be replaced with the app_name variable: https://searchfox.org/mozilla-central/rev/39a48ce1b2b20a004dfa364d0587164f838b62b0/python/mozbuild/mozbuild/repackaging/msix.py#286

mozbuild/mozbuild/mach_commands.py will need to accept a app_name argument, to pass along to mozbuild.repackage.msix.repackage_msix().

mozbuild/mozbuild/mach_commands.py sets up template and branding variables that are passed to mozbuild.repackage.msix.repackage_msix(). These are both hardcoded the browser directory. I'm proposing adding a build_app argument that from which both of these variables can be derived.

There will be small changes to each applications mozharness repackage configs to set the values and to gecko_taskgraph.transforms.repackage to add the arguments. The mozharness repackage configs for both Firefox and Thunderbird have a package-name value which will be used for the app_name argument. A build-app value will need to be added.

rjl: I'm happy to see almost any reasonable generalization of this work land. Flag me or :bhearsum for reviews.

Severity: -- → N/A
Priority: -- → P5

These are changes to decouple the MSIX repackaging from Firefox/browser and
allow repackaging Thunderbird.

Arguments added to the mach command have defaults that are appropriate for
Firefox. Thunderbird CI jobs will set these arguments in a comm_taskgraph
transform.

Assignee: nobody → rob
Status: NEW → ASSIGNED
Attachment #9299136 - Attachment description: Bug 1789178 - Extend MSIX repackaging to work with other products. r=nalexander → WIP: Bug 1789178 - Extend MSIX repackaging to work with other products. r=nalexander
Attachment #9299136 - Attachment description: WIP: Bug 1789178 - Extend MSIX repackaging to work with other products. r=nalexander → Bug 1789178 - Extend MSIX repackaging to work with other products. r=nalexander
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/integration/autoland/rev/26e37484f9ee
Extend MSIX repackaging to work with other products. r=nalexander
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
Regressions: 1817507
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: