better procedure to create firefox add-on

This commit is contained in:
Matias Alejo Garcia 2014-07-08 22:29:57 -03:00
parent 27e27af7ab
commit d97273f683
4 changed files with 84 additions and 70 deletions

View File

@ -133,9 +133,10 @@ Run
```
$ npm run-script firefox
```
- On sucess, the firefox add-on is located at:
browser-extensions/firefox/copay.xpi
`
- Copy the content of *firefox/firefox-addon* (lib, data, package.json) to your development path.
- Compile the XPI file. [Mozilla Docs](https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Getting_started)
## Web App

View File

@ -60,4 +60,4 @@ cd $BUILDDIR
zip -qr $ZIPFILE "`basename $APPDIR`"
checkOK
echo "${OpenColor}${Yellow}\nThe Chrome Extension is ready at $BUILDDIR.${CloseColor}"
echo "${OpenColor}${Yellow}\nThe Chrome Extension is ready at $BUILDDIR/copay-chrome-extension.zip${CloseColor}"

View File

@ -22,6 +22,10 @@ APPDIR="$BUILDDIR/firefox-addon"
ZIPFILE="copay-firefox-addon.zip"
VERSION=`cut -d '"' -f2 $BUILDDIR/../../version.js`
cfx >/dev/null
checkOK
# Move to the build directory
cd $BUILDDIR
@ -54,4 +58,12 @@ echo $CMD
$CMD
checkOK
echo "${OpenColor}${Yellow}\nThe Firefox add-on is ready at $BUILDDIR!${CloseColor}"
rm -Rf $BUILDDIR/data
mv $APPDIR/data $BUILDDIR
checkOK
cd $BUILDDIR
cfx xpi
checkOK
echo "${OpenColor}${Yellow}\nThe Firefox add-on is ready at $BUILDDIR/copay.xpi!${CloseColor}"

View File

@ -1,68 +1,69 @@
{
"name": "copay",
"version": "0.3.1",
"description": "A multisignature wallet",
"repository": {
"type": "git",
"url": "git://github.com/bitpay/copay.git"
},
"keywords": [
"wallet",
"copay",
"multisignature",
"bitcoin"
],
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/bitpay/copay/issues"
},
"main": "app.js",
"scripts": {
"start": "node server.js",
"test": "node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter spec test",
"shell": "node shell/scripts/launch.js",
"setup-shell": "node shell/scripts/download-atom-shell.js",
"chrome": "source browser-extensions/chrome/build.sh",
"firefox": "source browser-extensions/firefox/build.sh",
"dist": "node shell/scripts/dist.js"
},
"homepage": "https://github.com/bitpay/copay",
"devDependencies": {
"async": "0.9.0",
"bitcore": "0.1.25",
"blanket": "1.1.6",
"browser-pack": "2.0.1",
"browserify": "3.32.1",
"buffertools": "2.0.1",
"chai": "1.9.1",
"cli-color": "0.3.2",
"commander": "2.1.0",
"coveralls": "2.10.0",
"express": "4.0.0",
"github-releases": "0.2.0",
"grunt-browserify": "2.0.8",
"grunt-contrib-watch": "0.5.3",
"grunt-markdown": "0.5.0",
"grunt-mocha-test": "0.8.2",
"grunt-shell": "0.6.4",
"istanbul": "0.2.10",
"karma": "0.12.9",
"karma-chrome-launcher": "0.1.3",
"karma-mocha": "0.1.3",
"karma-phantomjs-launcher": "^0.1.4",
"mocha": "1.18.2",
"mocha-lcov-reporter": "0.0.1",
"node-cryptojs-aes": "0.4.0",
"soop": "0.1.5",
"travis-cov": "0.2.5",
"uglifyify": "1.2.3"
},
"dependencies": {
"mocha": "^1.18.2",
"mocha-lcov-reporter": "0.0.1",
"preconditions": "^1.0.7",
"sinon": "1.9.1"
}
"license": "MIT",
"name": "copay",
"repository": {
"url": "git://github.com/bitpay/copay.git",
"type": "git"
},
"author": "",
"bugs": {
"url": "https://github.com/bitpay/copay/issues"
},
"version": "0.3.1",
"dependencies": {
"preconditions": "^1.0.7",
"sinon": "1.9.1",
"mocha-lcov-reporter": "0.0.1",
"mocha": "^1.18.2"
},
"scripts": {
"shell": "node shell/scripts/launch.js",
"firefox": "source browser-extensions/firefox/build.sh",
"chrome": "source browser-extensions/chrome/build.sh",
"setup-shell": "node shell/scripts/download-atom-shell.js",
"start": "node server.js",
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter spec test",
"test": "node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"dist": "node shell/scripts/dist.js"
},
"keywords": [
"wallet",
"copay",
"multisignature",
"bitcoin"
],
"devDependencies": {
"mocha-lcov-reporter": "0.0.1",
"travis-cov": "0.2.5",
"chai": "1.9.1",
"buffertools": "2.0.1",
"commander": "2.1.0",
"uglifyify": "1.2.3",
"soop": "0.1.5",
"grunt-contrib-watch": "0.5.3",
"istanbul": "0.2.10",
"grunt-mocha-test": "0.8.2",
"github-releases": "0.2.0",
"grunt-markdown": "0.5.0",
"browser-pack": "2.0.1",
"bitcore": "0.1.25",
"node-cryptojs-aes": "0.4.0",
"blanket": "1.1.6",
"express": "4.0.0",
"grunt-shell": "0.6.4",
"karma-mocha": "0.1.3",
"async": "0.9.0",
"mocha": "1.18.2",
"browserify": "3.32.1",
"karma-phantomjs-launcher": "^0.1.4",
"coveralls": "2.10.0",
"grunt-browserify": "2.0.8",
"karma-chrome-launcher": "0.1.3",
"karma": "0.12.9",
"cli-color": "0.3.2"
},
"main": "app.js",
"homepage": "https://github.com/bitpay/copay",
"id": "jid1-x7bV5evAaI1P9Q",
"description": "A multisignature wallet"
}