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 ## 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 ## Firefox Add-on

View File

@ -47,7 +47,7 @@ checkOK
INCLUDE=`cat ../include` INCLUDE=`cat ../include`
cd $BUILDDIR/../.. cd $BUILDDIR/../..
LIBS=`cat index.html |grep -o -E 'src="([^"#]+)"' | cut -d'"' -f2|grep lib` 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" CMD="rsync -rLRv --exclude-from $BUILDDIR/../exclude $INCLUDE $LIBS $APPDIR"
echo $CMD echo $CMD

View File

@ -18,9 +18,9 @@ checkOK() {
# Configs # Configs
BUILDDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" BUILDDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
APPDIR="$BUILDDIR/firefox-addon" APPDIR="$BUILDDIR/browser-extensions/firefox/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`
# Move to the build directory # Move to the build directory
cd $BUILDDIR 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 sed "s/APP_VERSION/$VERSION/g" package.json > $APPDIR/package.json
checkOK checkOK
cd $BUILDDIR/.. INCLUDE=`cat ../../include`
cp -af {css,font,img,js,lib,sound,config.js,version.js,index.html,./popup.html} "$APPDIR/data" cd $BUILDDIR/../..
cp -af "$BUILDDIR/lib" $APPDIR 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 checkOK
echo "${OpenColor}${Yellow}\nAwesome! We have a brand new Firefox Addon, enjoy it!${CloseColor}" 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", "shell": "node shell/scripts/launch.js",
"setup-shell": "node shell/scripts/download-atom-shell.js", "setup-shell": "node shell/scripts/download-atom-shell.js",
"chrome": "source browser-extensions/chrome/build.sh" "chrome": "source browser-extensions/chrome/build.sh"
"firefox": "source browser-extensions/firefox/build.sh"
}, },
"homepage": "https://github.com/bitpay/copay", "homepage": "https://github.com/bitpay/copay",
"devDependencies": { "devDependencies": {