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 $ 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 ## Web App

View File

@ -60,4 +60,4 @@ cd $BUILDDIR
zip -qr $ZIPFILE "`basename $APPDIR`" zip -qr $ZIPFILE "`basename $APPDIR`"
checkOK 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" ZIPFILE="copay-firefox-addon.zip"
VERSION=`cut -d '"' -f2 $BUILDDIR/../../version.js` VERSION=`cut -d '"' -f2 $BUILDDIR/../../version.js`
cfx >/dev/null
checkOK
# Move to the build directory # Move to the build directory
cd $BUILDDIR cd $BUILDDIR
@ -54,4 +58,12 @@ echo $CMD
$CMD $CMD
checkOK 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", "license": "MIT",
"version": "0.3.1", "name": "copay",
"description": "A multisignature wallet", "repository": {
"repository": { "url": "git://github.com/bitpay/copay.git",
"type": "git", "type": "git"
"url": "git://github.com/bitpay/copay.git" },
}, "author": "",
"keywords": [ "bugs": {
"wallet", "url": "https://github.com/bitpay/copay/issues"
"copay", },
"multisignature", "version": "0.3.1",
"bitcoin" "dependencies": {
], "preconditions": "^1.0.7",
"author": "", "sinon": "1.9.1",
"license": "MIT", "mocha-lcov-reporter": "0.0.1",
"bugs": { "mocha": "^1.18.2"
"url": "https://github.com/bitpay/copay/issues" },
}, "scripts": {
"main": "app.js", "shell": "node shell/scripts/launch.js",
"scripts": { "firefox": "source browser-extensions/firefox/build.sh",
"start": "node server.js", "chrome": "source browser-extensions/chrome/build.sh",
"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", "setup-shell": "node shell/scripts/download-atom-shell.js",
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter spec test", "start": "node server.js",
"shell": "node shell/scripts/launch.js", "coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter spec test",
"setup-shell": "node shell/scripts/download-atom-shell.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",
"chrome": "source browser-extensions/chrome/build.sh", "dist": "node shell/scripts/dist.js"
"firefox": "source browser-extensions/firefox/build.sh", },
"dist": "node shell/scripts/dist.js" "keywords": [
}, "wallet",
"homepage": "https://github.com/bitpay/copay", "copay",
"devDependencies": { "multisignature",
"async": "0.9.0", "bitcoin"
"bitcore": "0.1.25", ],
"blanket": "1.1.6", "devDependencies": {
"browser-pack": "2.0.1", "mocha-lcov-reporter": "0.0.1",
"browserify": "3.32.1", "travis-cov": "0.2.5",
"buffertools": "2.0.1", "chai": "1.9.1",
"chai": "1.9.1", "buffertools": "2.0.1",
"cli-color": "0.3.2", "commander": "2.1.0",
"commander": "2.1.0", "uglifyify": "1.2.3",
"coveralls": "2.10.0", "soop": "0.1.5",
"express": "4.0.0", "grunt-contrib-watch": "0.5.3",
"github-releases": "0.2.0", "istanbul": "0.2.10",
"grunt-browserify": "2.0.8", "grunt-mocha-test": "0.8.2",
"grunt-contrib-watch": "0.5.3", "github-releases": "0.2.0",
"grunt-markdown": "0.5.0", "grunt-markdown": "0.5.0",
"grunt-mocha-test": "0.8.2", "browser-pack": "2.0.1",
"grunt-shell": "0.6.4", "bitcore": "0.1.25",
"istanbul": "0.2.10", "node-cryptojs-aes": "0.4.0",
"karma": "0.12.9", "blanket": "1.1.6",
"karma-chrome-launcher": "0.1.3", "express": "4.0.0",
"karma-mocha": "0.1.3", "grunt-shell": "0.6.4",
"karma-phantomjs-launcher": "^0.1.4", "karma-mocha": "0.1.3",
"mocha": "1.18.2", "async": "0.9.0",
"mocha-lcov-reporter": "0.0.1", "mocha": "1.18.2",
"node-cryptojs-aes": "0.4.0", "browserify": "3.32.1",
"soop": "0.1.5", "karma-phantomjs-launcher": "^0.1.4",
"travis-cov": "0.2.5", "coveralls": "2.10.0",
"uglifyify": "1.2.3" "grunt-browserify": "2.0.8",
}, "karma-chrome-launcher": "0.1.3",
"dependencies": { "karma": "0.12.9",
"mocha": "^1.18.2", "cli-color": "0.3.2"
"mocha-lcov-reporter": "0.0.1", },
"preconditions": "^1.0.7", "main": "app.js",
"sinon": "1.9.1" "homepage": "https://github.com/bitpay/copay",
} "id": "jid1-x7bV5evAaI1P9Q",
"description": "A multisignature wallet"
} }