Firefox 插件开发 - jpm 打包

// 打包
$ jpm xpi

对于本地开发测试,不需要签名, about:config xpinstall.signatures.required true->false

如果要上传发布,需要签名,先创建 api-key/api-secret

// 签名
$ jpm sign --api-key ${AMO_API_KEY} --api-secret ${AMO_API_SECRET} --xpi ${XPI_FILE}

但是貌似一直超时:

// jpm sign --debug
...
Validating add-on [...]
JPM [error] FAIL
Error: Validation took too long to complete; last status: [null]
at Timeout._onTimeout (/home/jasonz/node_modules/jpm/lib/amo-client.js:184:14)
at tryOnTimeout (timers.js:224:11)
at Timer.listOnTimeout (timers.js:198:5)
Like what you read? Give Jason Zhang a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.