bwc
This commit is contained in:
parent
04fb7ba032
commit
320de62f13
348 changed files with 7745 additions and 30874 deletions
|
|
@ -1,9 +0,0 @@
|
|||
Development
|
||||
|
||||
* Just run:
|
||||
|
||||
```
|
||||
$ sh chrome/build.sh
|
||||
```
|
||||
|
||||
* The ZIP file is *chrome/copay-chrome-extension.zip*
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
#! /bin/bash
|
||||
|
||||
# Description: This script compiles and copy the needed files to later package the application for Chrome
|
||||
|
||||
OpenColor="\033["
|
||||
Red="1;31m"
|
||||
Yellow="1;33m"
|
||||
Green="1;32m"
|
||||
CloseColor="\033[0m"
|
||||
|
||||
# Check function OK
|
||||
checkOK() {
|
||||
if [ $? != 0 ]; then
|
||||
echo "${OpenColor}${Red}* ERROR. Exiting...${CloseColor}"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Configs
|
||||
BUILDDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
APPDIR="$BUILDDIR/copay-chrome-extension"
|
||||
ZIPFILE="copay-chrome-extension.zip"
|
||||
VERSION=`cut -d '"' -f2 $BUILDDIR/../../version.js|head -n 1`
|
||||
|
||||
# Move to the build directory
|
||||
cd $BUILDDIR
|
||||
|
||||
# Create/Clean temp dir
|
||||
echo "${OpenColor}${Green}* Checking temp dir...${CloseColor}"
|
||||
if [ -d $APPDIR ]; then
|
||||
rm -rf $APPDIR
|
||||
fi
|
||||
|
||||
mkdir -p $APPDIR
|
||||
|
||||
# Re-compile copayBundle.js
|
||||
echo "${OpenColor}${Green}* Generating copay bundle...${CloseColor}"
|
||||
grunt prod
|
||||
checkOK
|
||||
|
||||
# Copy all chrome-extension files
|
||||
echo "${OpenColor}${Green}* Copying all chrome-extension files...${CloseColor}"
|
||||
sed "s/APP_VERSION/$VERSION/g" manifest.json > $APPDIR/manifest.json
|
||||
checkOK
|
||||
|
||||
|
||||
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"
|
||||
echo $CMD
|
||||
$CMD
|
||||
checkOK
|
||||
|
||||
# Zipping chrome-extension
|
||||
echo "${OpenColor}${Green}* Zipping all chrome-extension files...${CloseColor}"
|
||||
cd $BUILDDIR
|
||||
rm $ZIPFILE
|
||||
zip -qr $ZIPFILE "`basename $APPDIR`"
|
||||
checkOK
|
||||
|
||||
echo "${OpenColor}${Yellow}\nThe Chrome Extension is ready at $BUILDDIR/copay-chrome-extension.zip${CloseColor}"
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
chrome.app.runtime.onLaunched.addListener(function() {
|
||||
chrome.app.window.create('index.html', {
|
||||
'bounds': {
|
||||
'width': 1200,
|
||||
'height': 800
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"manifest_version": 2,
|
||||
"name": "Copay",
|
||||
"description": "A secure Bitcoin wallet for friends and companies",
|
||||
"version": "APP_VERSION",
|
||||
"permissions": [
|
||||
"storage",
|
||||
"notifications",
|
||||
"videoCapture"
|
||||
],
|
||||
"app": {
|
||||
"background": {
|
||||
"scripts": ["initial.js"]
|
||||
}
|
||||
},
|
||||
"icons": {
|
||||
"128": "img/icons/icon.png"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 30 KiB |
|
|
@ -1,19 +0,0 @@
|
|||
lib/socket.io
|
||||
lib/*/test
|
||||
lib/*/demo
|
||||
lib/sjcl/
|
||||
lib/angular/angular.js
|
||||
lib/moment/lang
|
||||
lib/moment/min/*lang*
|
||||
lib/moment/moment.js
|
||||
lib/angular/angular.min.js.gzip
|
||||
lib/bitcore/node_modules
|
||||
lib/bitcore/.git
|
||||
lib/bitcore/docs
|
||||
lib/bitcore/lib
|
||||
lib/bitcore/examples
|
||||
lib/bitcore/coverage
|
||||
lib/bitcore/build
|
||||
.git
|
||||
tests
|
||||
.*
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
css
|
||||
font
|
||||
img
|
||||
js
|
||||
sound
|
||||
views
|
||||
config.js
|
||||
init.js
|
||||
initial.js
|
||||
version.js
|
||||
index.html
|
||||
popup.html
|
||||
lib/angular/angular-csp.css
|
||||
lib/angular/angular.min.js.map
|
||||
lib/angular-route/angular-route.min.js.map
|
||||
lib/angular-touch/angular-touch.min.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue