update firefox extension

This commit is contained in:
Matias Alejo Garcia 2014-07-02 21:02:04 -03:00
parent 76cda09631
commit cf809e9fe2
4 changed files with 10 additions and 9 deletions

View File

@ -168,7 +168,7 @@ System Requirements
Run Run
``` ```
$ sh firefox/build.sh $ npm run-script firefox
``` ```
- Copy the content of *firefox/firefox-addon* (lib, data, package.json) to your development path. - Copy the content of *firefox/firefox-addon* (lib, data, package.json) to your development path.

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 Chome Extension is ready at $BUILDDIR.${CloseColor}" echo "${OpenColor}${Yellow}\nThe Chrome Extension is ready at $BUILDDIR.${CloseColor}"

View File

@ -18,7 +18,7 @@ checkOK() {
# Configs # Configs
BUILDDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" BUILDDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
APPDIR="$BUILDDIR/browser-extensions/firefox/firefox-addon" 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`
@ -30,8 +30,7 @@ echo "${OpenColor}${Green}* Checking temp dir...${CloseColor}"
if [ -d $APPDIR ]; then if [ -d $APPDIR ]; then
rm -rf $APPDIR rm -rf $APPDIR
fi fi
mkdir -p $APPDIR
mkdir -p "$APPDIR/data"
# Re-compile copayBundle.js # Re-compile copayBundle.js
echo "${OpenColor}${Green}* Generating copay bundle...${CloseColor}" echo "${OpenColor}${Green}* Generating copay bundle...${CloseColor}"
@ -40,10 +39,12 @@ checkOK
# Copy all chrome-extension files # Copy all chrome-extension files
echo "${OpenColor}${Green}* Copying all firefox-addon files...${CloseColor}" 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" "$BUILDDIR/../../package.json" > $APPDIR/package.json
checkOK checkOK
INCLUDE=`cat ../../include` INCLUDE=`cat ../include`
echo $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"
@ -53,4 +54,4 @@ echo $CMD
$CMD $CMD
checkOK checkOK
echo "${OpenColor}${Yellow}\nAwesome! We have a brand new Firefox Addon, enjoy it!${CloseColor}" echo "${OpenColor}${Yellow}\nThe Firefox add-on is ready at $BUILDDIR!${CloseColor}"

View File

@ -24,7 +24,7 @@
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter spec test", "coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter spec test",
"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" "firefox": "source browser-extensions/firefox/build.sh"
}, },
"homepage": "https://github.com/bitpay/copay", "homepage": "https://github.com/bitpay/copay",