fix chrome app
This commit is contained in:
parent
1de6b7abbf
commit
fcc2ab94e7
10 changed files with 54 additions and 43 deletions
|
|
@ -10,8 +10,9 @@ var templates = {
|
||||||
'ProjectMakefile': 'cordova/',
|
'ProjectMakefile': 'cordova/',
|
||||||
'config.xml': 'cordova/',
|
'config.xml': 'cordova/',
|
||||||
'Package.appxmanifest': 'cordova/wp/',
|
'Package.appxmanifest': 'cordova/wp/',
|
||||||
'.desktop': 'webkitbuilds/.desktop',
|
'.desktop': 'webkitbuilds/',
|
||||||
'setup-win.iss': 'webkitbuilds/setup-win.iss',
|
'setup-win.iss': 'webkitbuilds/',
|
||||||
|
'manifest.json': 'chrome-app/',
|
||||||
// 'bower.json': '/',
|
// 'bower.json': '/',
|
||||||
};
|
};
|
||||||
var configDir = process.argv[2] || 'copay';
|
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 + '/iosIcons/', '../cordova/ios/icons/', function() {
|
||||||
copyDir(configDir + '/iosSplash/', '../cordova/ios/splash/', function() {
|
copyDir(configDir + '/iosSplash/', '../cordova/ios/splash/', function() {
|
||||||
copyDir(configDir + '/wpAssets/', '../cordova/wp/Assets/', function() {
|
copyDir(configDir + '/wpAssets/', '../cordova/wp/Assets/', function() {
|
||||||
copyDir(configDir + '/wpImg/', '../cordova/wp/', function() {
|
copyDir(configDir + '/wpImg/', '../cordova/wp/', function() {
|
||||||
|
// TODO WP
|
||||||
// TODO WP
|
console.log("apply.js finished. \n\n");
|
||||||
console.log("apply.js finished. \n\n");
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
BIN
app-template/copay/img/icon-chrome-128.png
Normal file
BIN
app-template/copay/img/icon-chrome-128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
21
app-template/manifest.json
Normal file
21
app-template/manifest.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
# Configs
|
# Configs
|
||||||
BUILDDIR=build
|
BUILDDIR=build
|
||||||
ZIPFILE=copay-chrome-extension.zip
|
ZIPFILE=copay-chrome-extension.zip
|
||||||
VERSION=`cut -d '"' -f2 ../src/js/version.js|head -n 1`
|
|
||||||
|
|
||||||
INCLUDE=$(shell cat ./include)
|
INCLUDE=$(shell cat ./include)
|
||||||
INITIAL=./initial.js
|
INITIAL=./initial.js
|
||||||
|
|
@ -13,7 +12,7 @@ all: $(ZIPFILE)
|
||||||
dir:
|
dir:
|
||||||
rm -rf $(BUILDDIR)
|
rm -rf $(BUILDDIR)
|
||||||
mkdir -p $(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)
|
cp -vf $(INITIAL) $(BUILDDIR)
|
||||||
|
|
||||||
files:
|
files:
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
Development
|
|
||||||
|
|
||||||
* Just run:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ sh chrome/build.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
* The ZIP file is *chrome/copay-chrome-extension.zip*
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
./index.html
|
./index.html
|
||||||
|
./cordova.js
|
||||||
./css/*.css
|
./css/*.css
|
||||||
./font/*
|
|
||||||
./fonts/*
|
./fonts/*
|
||||||
./icons/*
|
|
||||||
./img/*
|
./img/*
|
||||||
./img/**/*
|
./img/**/*
|
||||||
./js/*.js
|
./js/*.js
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
{
|
{
|
||||||
|
"//":"PLEASE! Do not edit this file directly",
|
||||||
|
"//":" Modify it at app-template/",
|
||||||
|
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Copay",
|
"name": "BitPay",
|
||||||
"description": "A secure Bitcoin wallet for friends and companies",
|
"description": "The BitPay Bitcoin Wallet",
|
||||||
"version": "APP_VERSION",
|
"version": "0.2.0",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"storage",
|
"storage",
|
||||||
"unlimitedStorage",
|
"unlimitedStorage",
|
||||||
|
|
@ -16,6 +19,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"icons": {
|
"icons": {
|
||||||
"128": "img/icons/icon-chrome-128.png"
|
"128": "img/icon-chrome-128.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
BIN
public/img/icon-chrome-128.png
Normal file
BIN
public/img/icon-chrome-128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
|
|
@ -1,12 +1,11 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Version=2.5.0
|
Version=0.2.0
|
||||||
Name=Copay
|
Name=BitPay
|
||||||
Comment=A multisignature wallet
|
Comment=The BitPay Bitcoin Wallet
|
||||||
Exec=copay
|
Exec=bitpay
|
||||||
Icon=icon-256.png
|
Icon=icon-256.png
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=Finance
|
Categories=Finance
|
||||||
X-Ubuntu-Touch=true
|
X-Ubuntu-Touch=true
|
||||||
X-Ubuntu-StageHint=SideStage
|
X-Ubuntu-StageHint=SideStage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
; Script generated by the Inno Setup Script Wizard.
|
; Script generated by the Inno Setup Script Wizard.
|
||||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||||
|
|
||||||
#define MyAppName "Copay"
|
#define MyAppName "bitpay"
|
||||||
#define MyAppVersion "2.5.0"
|
#define MyAppVersion "0.2.0"
|
||||||
#define MyAppPublisher "BitPay"
|
#define MyAppPublisher "BitPay"
|
||||||
#define MyAppURL "https://copay.io"
|
#define MyAppURL "https://bitpay.com"
|
||||||
#define MyAppExeName "Copay.exe"
|
#define MyAppExeName "*NAMECASENOSPACE.exe"
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
AppId={{804636ee-b017-4cad-8719-e58ac97ffa5c}
|
AppId={{804636ee-b017-4cad-8719-e58ac97ffa5c}
|
||||||
|
|
@ -18,11 +18,10 @@ AppSupportURL={#MyAppURL}
|
||||||
AppUpdatesURL={#MyAppURL}
|
AppUpdatesURL={#MyAppURL}
|
||||||
DefaultDirName={pf}\{#MyAppName}
|
DefaultDirName={pf}\{#MyAppName}
|
||||||
DefaultGroupName={#MyAppName}
|
DefaultGroupName={#MyAppName}
|
||||||
OutputBaseFilename=Copay-win
|
OutputBaseFilename=BitPay-win
|
||||||
OutputDir=./
|
OutputDir=./
|
||||||
Compression=lzma
|
Compression=lzma
|
||||||
SolidCompression=yes
|
SolidCompression=yes
|
||||||
|
|
||||||
[Languages]
|
[Languages]
|
||||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||||
Name: "french"; MessagesFile: "compiler:Languages\French.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
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: "Copay\win64\copay.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "BitPay\win64\bitpay.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "Copay\win64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
Source: "BitPay\win64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||||
Source: "../public/img/icons/favicon.ico"; DestDir: "{app}"; DestName: "icon.ico"; Flags: ignoreversion
|
Source: "../public/img/icons/favicon.ico"; DestDir: "{app}"; DestName: "icon.ico"; Flags: ignoreversion
|
||||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
; 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\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
|
||||||
Root: HKCR; Subkey: "bitcoin\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
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: "bitpay"; ValueType: "string"; ValueData: "URL:BitPay Custom Protocol"; Flags: uninsdeletekey
|
||||||
Root: HKCR; Subkey: "copay"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: ""
|
Root: HKCR; Subkey: "bitpay"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: ""
|
||||||
Root: HKCR; Subkey: "copay\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
|
Root: HKCR; Subkey: "bitpay\DefaultIcon"; ValueType: "string"; ValueData: "{app}\{#MyAppExeName},0"
|
||||||
Root: HKCR; Subkey: "copay\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
Root: HKCR; Subkey: "bitpay\shell\open\command"; ValueType: "string"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue