From 943b6627efc2f829c30c0c79b411be8f73a7b595 Mon Sep 17 00:00:00 2001 From: NTD Date: Sat, 17 Feb 2018 07:38:02 -0500 Subject: [PATCH] Add mach installer and mach mar for Windows Installer and MAR file generation --- python/mozbuild/mozbuild/mach_commands.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py index b6802a47c3..ae71d08687 100644 --- a/python/mozbuild/mozbuild/mach_commands.py +++ b/python/mozbuild/mozbuild/mach_commands.py @@ -1075,6 +1075,24 @@ class Package(MachCommandBase): self.notify('Packaging complete') return ret +@CommandProvider +class Installer(MachCommandBase): + """Create the windows installer for the built product.""" + + @Command('installer', category='post-build', + description='Create the installer for the built product for distribution.') + def installer(self): + return self._run_make(directory=".", target='installer', ensure_exit_code=False) + +@CommandProvider +class Mar(MachCommandBase): + """Create the mar file for the built product.""" + + @Command('mar', category='post-build', + description='Create the mar file for the built product for distribution.') + def mar(self): + return self._run_make(directory="./tools/update-packaging/", target='', ensure_exit_code=False) + @CommandProvider class Install(MachCommandBase): """Install a package."""