firefox WIP

This commit is contained in:
Matias Alejo Garcia 2014-07-02 17:15:54 -03:00
parent 784f0695b7
commit 76cda09631
4 changed files with 20 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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}"

View File

@ -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": {