Merge pull request #398 from colkito/feature/firefox-addon-files

Feature/firefox addon files
This commit is contained in:
Gustavo Maximiliano Cortez 2014-05-19 10:30:07 -03:00
commit 99dd6a91fa
10 changed files with 41 additions and 5 deletions

1
.gitignore vendored
View File

@ -43,4 +43,5 @@ js/copayBundle.js
config.js config.js
webapp webapp
chrome-extension chrome-extension
firefox-addon
version.js version.js

BIN
img/icons/icon-16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

BIN
img/icons/icon-32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
img/icons/icon-64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -8,7 +8,7 @@
</head> </head>
<body> <body>
<div class="row"> <div class="row">
<h1>Copay Installation:</h1> <h1>Copay Chrome Installation:</h1>
<ul> <ul>
<li>Download <a href="copay-chrome-extension.zip">ZIP</a></li> <li>Download <a href="copay-chrome-extension.zip">ZIP</a></li>
<li>Unpack the ZIP file</li> <li>Unpack the ZIP file</li>

View File

@ -0,0 +1,18 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Copay Firefox Addon - Install</title>
<link rel="stylesheet" href="../../css/foundation.min.css">
</head>
<body>
<div class="row">
<h1>Copay Firefox Installation:</h1>
<ul>
<li>Download <a href="copay-firefox-addon.xpi">XPI</a></li>
<li>Copay is installed!</li>
</ul>
</div>
</body>
</html>

View File

@ -209,9 +209,9 @@
<div class="large-12 columns text-center line-dashed"> <div class="large-12 columns text-center line-dashed">
<a href="#settings">Settings</a> &middot; <a href="#settings">Settings</a> &middot;
<span ng-show="wallets.length"> <span ng-show="wallets.length">
<a href="#/setup">Create a new wallet</a> &middot; <a href="#setup">Create a new wallet</a> &middot;
</span> </span>
<a ng-href="#import">Import a backup</a> <a href="#import">Import a backup</a>
</div> </div>
</div> </div>
</div> <!-- End !loading --> </div> <!-- End !loading -->

View File

@ -76,5 +76,5 @@ angular
}); });
}) })
.config(function($compileProvider) { .config(function($compileProvider) {
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|tel|chrome-extension):/); $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|tel|chrome-extension|resource):/);
}); });

View File

@ -8,12 +8,13 @@
body { background-color: #2C3E50; } body { background-color: #2C3E50; }
a { a {
-webkit-border-radius: 5px; -webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px; border-radius: 5px;
background-color: #008cba; background-color: #008cba;
color: #fff; color: #fff;
display: block; display: block;
font-family: "Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif; font-family: "Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;
margin: 20px 0; margin: 20px auto;
opacity: .8; opacity: .8;
outline: none; outline: none;
padding: 10px; padding: 10px;

View File

@ -13,10 +13,12 @@ fi
# Configs # Configs
APPDIR="./webapp" APPDIR="./webapp"
CHROMEDIR="./chrome-extension" CHROMEDIR="./chrome-extension"
FIREFOXDIR="./firefox-addon"
LIBDIR="$APPDIR/lib" LIBDIR="$APPDIR/lib"
DOWNLOADDIR="$APPDIR/download" DOWNLOADDIR="$APPDIR/download"
CHROMEDOWNLOADDIR="$DOWNLOADDIR/chrome" CHROMEDOWNLOADDIR="$DOWNLOADDIR/chrome"
FIREFOXDOWNLOADDIR="$DOWNLOADDIR/firefox"
ZIPFILE="copay.zip" ZIPFILE="copay.zip"
CHROMEZIPFILE="copay-chrome-extension.zip" CHROMEZIPFILE="copay-chrome-extension.zip"
@ -50,6 +52,13 @@ fi
mkdir -p $CHROMEDIR mkdir -p $CHROMEDIR
# Create/Clean chrome-extension dir
if [ -d $FIREFOXDIR ]; then
rm -rf $FIREFOXDIR
fi
mkdir -p $FIREFOXDIR
# Re-compile copayBundle.js # Re-compile copayBundle.js
echo -e "${OpenColor}${Green}* Generating copay bundle...${CloseColor}" echo -e "${OpenColor}${Green}* Generating copay bundle...${CloseColor}"
grunt --target=dev shell grunt --target=dev shell
@ -65,6 +74,11 @@ echo -e "${OpenColor}${Green}* Copying all chrome-extension files...${CloseColor
cp -af {css,font,img,js,lib,sound,config.js,version.js,index.html,popup.html,manifest.json} $CHROMEDIR cp -af {css,font,img,js,lib,sound,config.js,version.js,index.html,popup.html,manifest.json} $CHROMEDIR
checkOK checkOK
# Copy all firefox-addon files
echo -e "${OpenColor}${Green}* Copying all firefox-addon files...${CloseColor}"
cp -af {css,font,img,js,lib,sound,config.js,version.js,index.html,popup.html} $FIREFOXDIR
checkOK
# Zipping apps # Zipping apps
echo -e "${OpenColor}${Green}* Zipping all app files...${CloseColor}" echo -e "${OpenColor}${Green}* Zipping all app files...${CloseColor}"
zip -r $ZIPFILE $APPDIR zip -r $ZIPFILE $APPDIR
@ -76,8 +90,10 @@ zip -r $CHROMEZIPFILE $CHROMEDIR
checkOK checkOK
mkdir -p $CHROMEDOWNLOADDIR mkdir -p $CHROMEDOWNLOADDIR
mkdir -p $FIREFOXDOWNLOADDIR
mv $ZIPFILE $DOWNLOADDIR mv $ZIPFILE $DOWNLOADDIR
mv $CHROMEZIPFILE $CHROMEDOWNLOADDIR mv $CHROMEZIPFILE $CHROMEDOWNLOADDIR
cp index-download-chrome.html $CHROMEDOWNLOADDIR/index.html cp index-download-chrome.html $CHROMEDOWNLOADDIR/index.html
cp index-download-firefox.html $FIREFOXDOWNLOADDIR/index.html
echo -e "${OpenColor}${Yellow}\nAwesome! Now you have the webapp in ./webapp and the chrome extension files in ./webapp/download/.${CloseColor}" echo -e "${OpenColor}${Yellow}\nAwesome! Now you have the webapp in ./webapp and the chrome extension files in ./webapp/download/.${CloseColor}"