firefox - How to create a xpi file from scratchpad -
i have developed add-on in scratchpad environment , developing finished , want create final xpi file.
i replace this:
cu.import('resource://gre/modules/ctypes.jsm');
by this:
var {cu} = require("chrome"); var{ctypes} = cu.import("resource://gre/modules/ctypes.jsm", null);
then using nodejs (jpm init , jpm xpi commands) created xpi file not worked properly.
what did follow jpm tutorial: https://developer.mozilla.org/en-us/add-ons/sdk/tutorials/getting_started_%28jpm%29 , https://developer.mozilla.org/en-us/add-ons/sdk/tools/jpm#installation
i did on windows system:
- we downloaded node.js
- npm came it
- created directory, in directory did jpm-init command line
- filled out prompts filled in code addon:
we created similiar addon demo addon here: https://github.com/noitidart/jpm-chromeworker
i cant share actuall addon personal user. above simpler , shows how it.
we did our jsctypes in chromeworker, , have communicate index.js via messaging
Comments
Post a Comment