Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install SDK addons #9

Open
Noitidart opened this issue Mar 6, 2014 · 5 comments
Open

Cannot install SDK addons #9

Noitidart opened this issue Mar 6, 2014 · 5 comments

Comments

@Noitidart
Copy link

Tons of new kids are using the sdk and posting it onto github. The official sdk site has this as an official example:
Annotator - SDK Official

However I can't install it because these suckers don't have install.rdf's. Please make compatible.

@diegocr
Copy link
Owner

diegocr commented Mar 6, 2014

Heh.... take a look:

http://ask.mozilla.org/question/199/how-would-you-package-a-sdk-based-add-on-without-using-the-sdkpython/

As you can see, i posted that more than a week ago and didn't get a reply yet on how to do that....

For everyone looking for this feature, feel free to show your interest in that thread at ask.m.o

@Noitidart
Copy link
Author

I think from FF30 sdk is now packaged with the browser. Maybe we can revisit this issue.

@Noitidart
Copy link
Author

Aw shoot accidentally closed. Re-opening.

@Noitidart
Copy link
Author

I think now that we are revisiting, due to the signing, and the change in template. We should seriously consider SDK addon ability. Almost all addons now are SDK. Just food for thought :)

We can import and use the jpm npm module like this - taken from - https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/system_child_process#Using_child_process_in_non-jpm_extensions -

// Import SDK Stuff
const COMMONJS_URI = 'resource://gre/modules/commonjs';
const { require } = Cu.import(COMMONJS_URI + '/toolkit/require.js', {});
var child_process = require('sdk/system/child_process');

// Use it in the same way as in the example above

@Noitidart
Copy link
Author

Hey @diegocr I was wondering if there any blocking issues preventing us from landing building xpi from jpm addons? cfx has been deprecated and AMO does't accept it.

So all we would have to do is add what jpm xpi does which is this:

https://github.com/mozilla-jetpack/jpm/blob/master/lib/xpi.js

Would this be possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants