fix chrome app

This commit is contained in:
Matias Alejo Garcia 2016-08-19 17:47:37 -03:00
commit fcc2ab94e7
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
10 changed files with 54 additions and 43 deletions

View file

@ -10,8 +10,9 @@ var templates = {
'ProjectMakefile': 'cordova/',
'config.xml': 'cordova/',
'Package.appxmanifest': 'cordova/wp/',
'.desktop': 'webkitbuilds/.desktop',
'setup-win.iss': 'webkitbuilds/setup-win.iss',
'.desktop': 'webkitbuilds/',
'setup-win.iss': 'webkitbuilds/',
'manifest.json': 'chrome-app/',
// 'bower.json': '/',
};
var configDir = process.argv[2] || 'copay';
@ -108,13 +109,12 @@ copyDir(configDir + '/img/', '../public/img/', function() {
copyDir(configDir + '/iosIcons/', '../cordova/ios/icons/', function() {
copyDir(configDir + '/iosSplash/', '../cordova/ios/splash/', function() {
copyDir(configDir + '/wpAssets/', '../cordova/wp/Assets/', function() {
copyDir(configDir + '/wpImg/', '../cordova/wp/', function() {
// TODO WP
console.log("apply.js finished. \n\n");
copyDir(configDir + '/wpImg/', '../cordova/wp/', function() {
// TODO WP
console.log("apply.js finished. \n\n");
});
});
});
});
});
});
});
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View file

@ -0,0 +1,21 @@
{
"manifest_version": 2,
"name": "*NAMECASENOSPACE*",
"description": "*DESCRIPTION*",
"version": "*VERSION*",
"permissions": [
"storage",
"unlimitedStorage",
"notifications",
"videoCapture",
"webview"
],
"app": {
"background": {
"scripts": ["initial.js"]
}
},
"icons": {
"128": "img/icon-chrome-128.png"
}
}

View file

@ -1,7 +1,6 @@
# Configs
BUILDDIR=build
ZIPFILE=copay-chrome-extension.zip
VERSION=`cut -d '"' -f2 ../src/js/version.js|head -n 1`
INCLUDE=$(shell cat ./include)
INITIAL=./initial.js
@ -13,7 +12,7 @@ all: $(ZIPFILE)
dir:
rm -rf $(BUILDDIR)
mkdir -p $(BUILDDIR)
sed "s/APP_VERSION/$(VERSION)/g" manifest.json > $(BUILDDIR)/manifest.json
cp manifest.json $(BUILDDIR)/manifest.json
cp -vf $(INITIAL) $(BUILDDIR)
files:

View file

@ -1,9 +0,0 @@
Development
* Just run:
```
$ sh chrome/build.sh
```
* The ZIP file is *chrome/copay-chrome-extension.zip*

View file

@ -1,8 +1,7 @@
./index.html
./cordova.js
./css/*.css
./font/*
./fonts/*
./icons/*
./img/*
./img/**/*
./js/*.js

View file

@ -1,8 +1,11 @@
{
{
"//":"PLEASE! Do not edit this file directly",
"//":" Modify it at app-template/",
"manifest_version": 2,
"name": "Copay",
"description": "A secure Bitcoin wallet for friends and companies",
"version": "APP_VERSION",
"name": "BitPay",
"description": "The BitPay Bitcoin Wallet",
"version": "0.2.0",
"permissions": [
"storage",
"unlimitedStorage",
@ -16,6 +19,6 @@
}
},
"icons": {
"128": "img/icons/icon-chrome-128.png"
"128": "img/icon-chrome-128.png"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View file

@ -1,12 +1,11 @@
[Desktop Entry]
Type=Application
Version=2.5.0
Name=Copay
Comment=A multisignature wallet
Exec=copay
Version=0.2.0
Name=BitPay
Comment=The BitPay Bitcoin Wallet
Exec=bitpay
Icon=icon-256.png
Terminal=false
Categories=Finance
X-Ubuntu-Touch=true
X-Ubuntu-StageHint=SideStage

View file

@ -1,11 +1,11 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "Copay"
#define MyAppVersion "2.5.0"
#define MyAppName "bitpay"
#define MyAppVersion "0.2.0"
#define MyAppPublisher "BitPay"
#define MyAppURL "https://copay.io"
#define MyAppExeName "Copay.exe"
#define MyAppURL "https://bitpay.com"
#define MyAppExeName "*NAMECASENOSPACE.exe"
[Setup]
AppId={{804636ee-b017-4cad-8719-e58ac97ffa5c}
@ -18,11 +18,10 @@ AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=Copay-win
OutputBaseFilename=BitPay-win
OutputDir=./
Compression=lzma
SolidCompression=yes
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
@ -33,8 +32,8 @@ Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "Copay\win64\copay.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "Copay\win64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "BitPay\win64\bitpay.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "BitPay\win64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "../public/img/icons/favicon.ico"; DestDir: "{app}"; DestName: "icon.ico"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
@ -51,8 +50,8 @@ Root: HKCR; Subkey: "bitcoin"; ValueType: "string"; ValueName: "URL Protocol"; V
Root: HKCR; Subkey: "bitcoin\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
Root: HKCR; Subkey: "bitcoin\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
Root: HKCR; Subkey: "copay"; ValueType: "string"; ValueData: "URL:Copay Custom Protocol"; Flags: uninsdeletekey
Root: HKCR; Subkey: "copay"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: ""
Root: HKCR; Subkey: "copay\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
Root: HKCR; Subkey: "copay\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
Root: HKCR; Subkey: "bitpay"; ValueType: "string"; ValueData: "URL:BitPay Custom Protocol"; Flags: uninsdeletekey
Root: HKCR; Subkey: "bitpay"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: ""
Root: HKCR; Subkey: "bitpay\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
Root: HKCR; Subkey: "bitpay\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""