Closed Bug 671835 Opened 13 years ago Closed 12 years ago

Offer an API to download a package source as a ZIP file

Categories

(addons.mozilla.org Graveyard :: Add-on Builder, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: ochameau, Assigned: zalun)

Details

Regarding bug 671461 discussion, we would need one really simple API to start connecting Addon builder with Jetpack runner:
A public API that allow to download a package source files as a ZIP file.
So that I would be able to run it though Jetpack runner.

As soon as I can have access to such API, 
I can start running addons from Addon builder locally and see how fast it is performing.

Such zib file would contains:
 - package.json
 - libraries files
 - data files
 - tests files, if any

My plan would be to dynamically add a button in Builder interface that would download this package, build the related xpi, run it in current FF instance and display "something" about the result of this run.
This can be done very quickly, but again we still have to figure out how we would maintain this code.
I see it as a zip of packages directory without sdk packages.

-myaddon
  |- lib
  |  `- main.js
  `- data 
-somelib

etc.
Assignee: nobody → zaloon
Oh yes, it can be even more simplier to have all dependencies fetched at the same time! It is obviously not what we want if we want to go fully offline, but in case of my very first experiment, it can be handy.
I will let your team choose all these kind of options afterward.
I do want to provide this, it is something we all discussed originally. I feel like sometime post 1.0 in Q1 or Q2 2012 is likely the correct time for moving on this.
Priority: -- → P2
Target Milestone: --- → Future
do we still want to do it?
Definitely. This is the missing piece in order to be able to build addons on client side. cfx-js is close to be able to do that. So that we will be able to ship cfx-js in Addon builder helper and build addons on client side!
Hi Piotr, 

I've raised the priority of this bug to P1, to reflect the level of importance the SDK team puts on this feature. Regardless of what happens in the future, the Builder application needs to have a mechanism whereby users can download the unpackaged source of their projects.

When you get some time, can you please follow up with an estimate of what would be entailed.
Priority: P2 → P1
https://github.com/mozilla/FlightDeck/pull/162 in review
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.