mirror of https://github.com/BTCPrivate/copay.git
better procedure to create firefox add-on
This commit is contained in:
parent
27e27af7ab
commit
d97273f683
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
109
package.json
109
package.json
|
@ -1,10 +1,30 @@
|
||||||
{
|
{
|
||||||
|
"license": "MIT",
|
||||||
"name": "copay",
|
"name": "copay",
|
||||||
"version": "0.3.1",
|
|
||||||
"description": "A multisignature wallet",
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"url": "git://github.com/bitpay/copay.git",
|
||||||
"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": [
|
"keywords": [
|
||||||
"wallet",
|
"wallet",
|
||||||
|
@ -12,57 +32,38 @@
|
||||||
"multisignature",
|
"multisignature",
|
||||||
"bitcoin"
|
"bitcoin"
|
||||||
],
|
],
|
||||||
"author": "",
|
"devDependencies": {
|
||||||
"license": "MIT",
|
"mocha-lcov-reporter": "0.0.1",
|
||||||
"bugs": {
|
"travis-cov": "0.2.5",
|
||||||
"url": "https://github.com/bitpay/copay/issues"
|
"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",
|
"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",
|
"homepage": "https://github.com/bitpay/copay",
|
||||||
"devDependencies": {
|
"id": "jid1-x7bV5evAaI1P9Q",
|
||||||
"async": "0.9.0",
|
"description": "A multisignature wallet"
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue