and a more simplified example,
and a helpful CMD-batch file to wrap the NodeJS functionality.
JWT_ISSUER and JWT_SECRET are stored in txt files (dummy values included).
You need to generate your own credentials and run the 'example.cmd'.
(Delete it afterwards from https://addons.mozilla.org/en-GB/developers/addon/nothing/versions ).
running example.cmd
, will give you something like this:
call "node.exe" "index.js" "user:0a1b2:c4d" "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" "C:\sign-addon\nothing.xpi" "22.22.22.22" "nothing@eladkarako.com" [ 'user:0a1b2:c4d', '0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef', 'C:\\sign-addon\\nothing.xpi', '22.22.22.22', 'nothing@eladkarako.com' ] Validating add-on [ . ] Validating add-on [ . . ] Validating add-on [ . . . ] Validating add-on [ .. . . ] Validating add-on [ .. . . . ] Validating add-on [ .. . . .. ] Validating add-on [ . .. . . .. ] Validating add-on [ . .. .. . .. ] Validating add-on [ . .. .. . . .. ] Validating add-on [ . .. .. . . .. . ] Validating add-on [ .. .. .. . . .. . ] Validating add-on [ .. .. .. . . . .. . ] Validating add-on [ .. .. .. . . . . .. . ] Validating add-on [ .. .. .. . . . . . .. . ] Validating add-on [ .. .. .. . . . . . . .. . ] Validating add-on [ .. .. .. . . . . . . . .. . ] Validating add-on [ .. .. .. . . . . . . . . .. . ] Validating add-on [ .. .. .. . . .. . . . . . .. . ] Validating add-on [ .. .. . .. . . .. . . . . . .. . ] Validating add-on [ .. .. . .. . . .. . . . . . ... . ] Validating add-on [ .. .. . .. . . .. . . . . . ... ..] Validating add-on [ .. .. . .. . . . .. . . . . . ... ..] Validating add-on [ .. .. . .. . .. . .. . . . . . ... ..] Validating add-on [ .. .. . ... . .. . .. . . . . . ... ..] Validating add-on [ .. .. ..... . .. . .. . . . . . ... ..] Validating add-on [ .. .. ..... . .. . .. . . . . . . ... ..] Validating add-on [ .. .. ..... . .. . .. . . . . . . . ... ..] Validating add-on [ .. .. ..... . .. . .. . . . . . . . . ... ..] Validating add-on [ .. .. ..... . .. . .. . . . .. . . . . ... ..] Validating add-on [ .. .. ..... .... . .. . . . .. . . . . ... ..] Validating add-on [ .. .. ..... .... . .. . . . .. . . . . .... ..] Validating add-on [ .. .. ..... .... . .. . . . .. . . . . . .... ..] Validating add-on [ .. .. ..... .... . .. . . . .. . . . .. . .... ..] Validating add-on [ .. .. ..... .... . ... . . . .. . . . .. . .... ..] Validating add-on [ .. .. ..... .... . ... . . . .... . . .. . .... ..] Validating add-on [ .. .. ..... .... . ... . . . . .... . . .. . .... ..] Validating add-on [ ... .. ..... .... . ... . . . . .... . . .. . .... ..] Validating add-on [ ... .. ..... . .... . ... . . . . .... . . .. . .... ..] Validating add-on [ ... .. ..... . .... . ... . . . . .... . . ... . .... ..] Validating add-on [.... .. ..... . .... . ... . . . . .... . . ... . .... ..] Validating add-on [.... .. ..... . .... . ... . . . . . .... . . ... . .... ..] Validating add-on [...........................................................................] Validation results: https://addons.mozilla.org/en-US/developers/upload/0123456789abcdef0123456789abcdef Downloading signed files: 100% Downloaded: .\nothing-22.22.22.22-an+fx.xpi The following signed files were downloaded: [ 'C:\\sign-addon\\nothing-22.22.22.22-an+fx.xpi' ] Your extension ID is: nothing@eladkarako.com SUCCESS Press any key to continue . . .