Closed Bug 820179 Opened 13 years ago Closed 13 years ago

Mach command for `make package`

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla20

People

(Reporter: rnewman, Assigned: rnewman)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Proposed patch. v1 (obsolete) — Splinter Review
Does exactly what it says on the tin. I'm probably missing something (first Mach contrib), so feedback welcome.
Attachment #690606 - Flags: review?(gps)
Comment on attachment 690606 [details] [diff] [review] Proposed patch. v1 Review of attachment 690606 [details] [diff] [review]: ----------------------------------------------------------------- ::: python/mozbuild/mozbuild/mach_commands.py @@ +130,5 @@ > warning['flag'], warning['message'])) > > +@CommandProvider > +class Package(MachCommandBase): > + """Package an APK for Android.""" Is this really Android-specific? I thought we had make package for desktop too.
(In reply to :Ms2ger from comment #1) > Is this really Android-specific? I thought we had make package for desktop > too. It's not, we use make package to create the windows zip, the mac dmg and the linux tarballs.
Ah, didn't realize it was overloaded. (I've never used `package` for desktop; it seems to be done automatically, at least on my Mac.)
Attachment #690606 - Attachment is obsolete: true
Attachment #690606 - Flags: review?(gps)
Attachment #690917 - Flags: review?(gps)
Comment on attachment 690917 [details] [diff] [review] Proposed patch. v2 Review of attachment 690917 [details] [diff] [review]: ----------------------------------------------------------------- LGTM! ::: python/mozbuild/mozbuild/mach_commands.py @@ +134,5 @@ > + """Package the built product for distribution.""" > + > + @Command('package', help='Package the built product for distribution as an APK, DMG, etc.') > + def package(self): > + self._run_make(directory=".", target='package') return self._run_make(directory='.', target='package', ensure_exit_code=False) Otherwise you get a fat exception if |make| exits non-0.
Attachment #690917 - Flags: review?(gps) → review+
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla20
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Blocks: 848757
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: