mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #398 from colkito/feature/firefox-addon-files
Feature/firefox addon files
This commit is contained in:
commit
99dd6a91fa
|
@ -43,4 +43,5 @@ js/copayBundle.js
|
|||
config.js
|
||||
webapp
|
||||
chrome-extension
|
||||
firefox-addon
|
||||
version.js
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 643 B |
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
|
@ -8,7 +8,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<div class="row">
|
||||
<h1>Copay Installation:</h1>
|
||||
<h1>Copay Chrome Installation:</h1>
|
||||
<ul>
|
||||
<li>Download <a href="copay-chrome-extension.zip">ZIP</a></li>
|
||||
<li>Unpack the ZIP file</li>
|
||||
|
|
|
@ -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>
|
|
@ -209,9 +209,9 @@
|
|||
<div class="large-12 columns text-center line-dashed">
|
||||
<a href="#settings">Settings</a> ·
|
||||
<span ng-show="wallets.length">
|
||||
<a href="#/setup">Create a new wallet</a> ·
|
||||
<a href="#setup">Create a new wallet</a> ·
|
||||
</span>
|
||||
<a ng-href="#import">Import a backup</a>
|
||||
<a href="#import">Import a backup</a>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- End !loading -->
|
||||
|
|
|
@ -76,5 +76,5 @@ angular
|
|||
});
|
||||
})
|
||||
.config(function($compileProvider) {
|
||||
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|tel|chrome-extension):/);
|
||||
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|tel|chrome-extension|resource):/);
|
||||
});
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
body { background-color: #2C3E50; }
|
||||
a {
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
background-color: #008cba;
|
||||
color: #fff;
|
||||
display: block;
|
||||
font-family: "Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;
|
||||
margin: 20px 0;
|
||||
margin: 20px auto;
|
||||
opacity: .8;
|
||||
outline: none;
|
||||
padding: 10px;
|
||||
|
|
|
@ -13,10 +13,12 @@ fi
|
|||
# Configs
|
||||
APPDIR="./webapp"
|
||||
CHROMEDIR="./chrome-extension"
|
||||
FIREFOXDIR="./firefox-addon"
|
||||
|
||||
LIBDIR="$APPDIR/lib"
|
||||
DOWNLOADDIR="$APPDIR/download"
|
||||
CHROMEDOWNLOADDIR="$DOWNLOADDIR/chrome"
|
||||
FIREFOXDOWNLOADDIR="$DOWNLOADDIR/firefox"
|
||||
|
||||
ZIPFILE="copay.zip"
|
||||
CHROMEZIPFILE="copay-chrome-extension.zip"
|
||||
|
@ -50,6 +52,13 @@ fi
|
|||
|
||||
mkdir -p $CHROMEDIR
|
||||
|
||||
# Create/Clean chrome-extension dir
|
||||
if [ -d $FIREFOXDIR ]; then
|
||||
rm -rf $FIREFOXDIR
|
||||
fi
|
||||
|
||||
mkdir -p $FIREFOXDIR
|
||||
|
||||
# Re-compile copayBundle.js
|
||||
echo -e "${OpenColor}${Green}* Generating copay bundle...${CloseColor}"
|
||||
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
|
||||
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
|
||||
echo -e "${OpenColor}${Green}* Zipping all app files...${CloseColor}"
|
||||
zip -r $ZIPFILE $APPDIR
|
||||
|
@ -76,8 +90,10 @@ zip -r $CHROMEZIPFILE $CHROMEDIR
|
|||
checkOK
|
||||
|
||||
mkdir -p $CHROMEDOWNLOADDIR
|
||||
mkdir -p $FIREFOXDOWNLOADDIR
|
||||
mv $ZIPFILE $DOWNLOADDIR
|
||||
mv $CHROMEZIPFILE $CHROMEDOWNLOADDIR
|
||||
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}"
|
||||
|
|
Loading…
Reference in New Issue