Closed
Bug 820179
Opened 13 years ago
Closed 13 years ago
Mach command for `make package`
Categories
(Firefox Build System :: Mach Core, enhancement)
Firefox Build System
Mach Core
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla20
People
(Reporter: rnewman, Assigned: rnewman)
References
Details
Attachments
(1 file, 1 obsolete file)
1.03 KB,
patch
|
gps
:
review+
|
Details | Diff | 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 1•13 years ago
|
||
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.
Comment 2•13 years ago
|
||
(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.
Assignee | ||
Comment 3•13 years ago
|
||
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 4•13 years ago
|
||
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+
Assignee | ||
Comment 5•13 years ago
|
||
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla20
![]() |
||
Comment 6•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•