firefox WIP
This commit is contained in:
parent
784f0695b7
commit
76cda09631
4 changed files with 20 additions and 9 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue