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:

  1. we downloaded node.js
  2. npm came it
  3. created directory, in directory did jpm-init command line
  4. 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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -