mirror of https://github.com/BTCPrivate/copay.git
firefox WIP
This commit is contained in:
parent
784f0695b7
commit
76cda09631
11
README.md
11
README.md
|
@ -146,12 +146,17 @@ else {
|
|||
|
||||
## Google Chrome Extension
|
||||
|
||||
When you need to compile a *Chrome Extension* of Copay, you only need to run:
|
||||
To build Copay's *Chrome Extension*, run:
|
||||
```
|
||||
$ sh chrome/build.sh
|
||||
$ npm run-script chrome
|
||||
```
|
||||
|
||||
- The ZIP file is *chrome/copay-chrome-extension.zip*
|
||||
- On sucess, the chrome extension is located at:
|
||||
`
|
||||
browser-extensions/chrome/copay-chrome-extension
|
||||
`
|
||||
|
||||
To install it go to `chrome://extensions/` at your chrome browser, make sure you have 'developer mode' option checked at your Chrome settings. Click on "Load unpacked chrome extension" and choose the directory mentioned above.
|
||||
|
||||
## Firefox Add-on
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ checkOK
|
|||
INCLUDE=`cat ../include`
|
||||
cd $BUILDDIR/../..
|
||||
LIBS=`cat index.html |grep -o -E 'src="([^"#]+)"' | cut -d'"' -f2|grep lib`
|
||||
echo "LIBS $LIBS"
|
||||
echo "LIBS: $LIBS"
|
||||
|
||||
CMD="rsync -rLRv --exclude-from $BUILDDIR/../exclude $INCLUDE $LIBS $APPDIR"
|
||||
echo $CMD
|
||||
|
|
|
@ -18,9 +18,9 @@ checkOK() {
|
|||
|
||||
# Configs
|
||||
BUILDDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
APPDIR="$BUILDDIR/firefox-addon"
|
||||
APPDIR="$BUILDDIR/browser-extensions/firefox/firefox-addon"
|
||||
ZIPFILE="copay-firefox-addon.zip"
|
||||
VERSION=`cut -d '"' -f2 $BUILDDIR/../version.js`
|
||||
VERSION=`cut -d '"' -f2 $BUILDDIR/../../version.js`
|
||||
|
||||
# Move to the build directory
|
||||
cd $BUILDDIR
|
||||
|
@ -43,9 +43,14 @@ echo "${OpenColor}${Green}* Copying all firefox-addon files...${CloseColor}"
|
|||
sed "s/APP_VERSION/$VERSION/g" package.json > $APPDIR/package.json
|
||||
checkOK
|
||||
|
||||
cd $BUILDDIR/..
|
||||
cp -af {css,font,img,js,lib,sound,config.js,version.js,index.html,./popup.html} "$APPDIR/data"
|
||||
cp -af "$BUILDDIR/lib" $APPDIR
|
||||
INCLUDE=`cat ../../include`
|
||||
cd $BUILDDIR/../..
|
||||
LIBS=`cat index.html |grep -o -E 'src="([^"#]+)"' | cut -d'"' -f2|grep lib`
|
||||
echo "LIBS: $LIBS"
|
||||
|
||||
CMD="rsync -rLRv --exclude-from $BUILDDIR/../exclude $INCLUDE $LIBS $APPDIR/data"
|
||||
echo $CMD
|
||||
$CMD
|
||||
checkOK
|
||||
|
||||
echo "${OpenColor}${Yellow}\nAwesome! We have a brand new Firefox Addon, enjoy it!${CloseColor}"
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
"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"
|
||||
},
|
||||
"homepage": "https://github.com/bitpay/copay",
|
||||
"devDependencies": {
|
||||
|
|
Loading…
Reference in New Issue