Adds node-webkit support to package.json, icons/favicon. Fix setup-win syntax. Adds new constants to templates

This commit is contained in:
Gustavo Maximiliano Cortez 2016-10-11 10:50:43 -03:00
commit 756e1aa489
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
13 changed files with 75 additions and 28 deletions

View file

@ -5,6 +5,7 @@
// //
var templates = { var templates = {
'package.json': '/',
'Makefile': 'cordova/', 'Makefile': 'cordova/',
'ProjectMakefile': 'cordova/', 'ProjectMakefile': 'cordova/',
'config-template.xml': '/', 'config-template.xml': '/',

View file

@ -5,12 +5,13 @@
"purposeLine": "Secure Bitcoin Wallet", "purposeLine": "Secure Bitcoin Wallet",
"bundleName": "wallet", "bundleName": "wallet",
"appUri": "bitpay", "appUri": "bitpay",
"name": "bitpay", "name": "bitpay",
"nameNoSpace": "bitpay", "nameNoSpace": "bitpay",
"nameCase": "BitPay", "nameCase": "BitPay",
"nameCaseNoSpace": "BitPay", "nameCaseNoSpace": "BitPay",
"gitHubRepoName": "bitpay-wallet", "gitHubRepoName": "bitpay-wallet",
"gitHubRepoUrl": "git://github.com/bitpay/bitpay-wallet.git",
"gitHubRepoBugs": "https://github.com/bitpay/bitpay-wallet/issues",
"disclaimerUrl": "", "disclaimerUrl": "",
"url": "https://bitpay.com", "url": "https://bitpay.com",
"appDescription": "Secure Bitcoin Wallet", "appDescription": "Secure Bitcoin Wallet",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

View file

@ -3,14 +3,15 @@
"packageDescription": "Copay Bitcoin Wallet", "packageDescription": "Copay Bitcoin Wallet",
"userVisibleName": "Copay", "userVisibleName": "Copay",
"purposeLine": "Copay Bitcoin Wallet", "purposeLine": "Copay Bitcoin Wallet",
"bundleName": "copay",
"appUri": "copay", "appUri": "copay",
"name": "copay", "name": "copay",
"nameNoSpace": "copay", "nameNoSpace": "copay",
"nameCase": "Copay", "nameCase": "Copay",
"nameCaseNoSpace": "Copay", "nameCaseNoSpace": "Copay",
"bundleName": "copay",
"gitHubRepoName": "copay", "gitHubRepoName": "copay",
"gitHubRepoUrl": "git://github.com/bitpay/copay.git",
"gitHubRepoBugs": "https://github.com/bitpay/copay/issues",
"disclaimerUrl": "https://copay.io/disclaimer", "disclaimerUrl": "https://copay.io/disclaimer",
"url": "https://copay.io", "url": "https://copay.io",
"appDescription": "Copay Bitcoin Wallet", "appDescription": "Copay Bitcoin Wallet",

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

View file

@ -14,14 +14,14 @@
"main": "www/index.html", "main": "www/index.html",
"window": { "window": {
"title": "*USERVISIBLENAME* - *PURPOSELINE*", "title": "*USERVISIBLENAME* - *PURPOSELINE*",
"icon": "./www/img/icons/icon-256.png", "icon": "www/img/icon-128.png",
"toolbar": false, "toolbar": false,
"show": true, "show": true,
"visible": true, "visible": true,
"resizable": true, "resizable": true,
"frame": true, "frame": true,
"width": 400, "width": 400,
"height": 600, "height": 650,
"position": "center", "position": "center",
"fullscreen": false "fullscreen": false
}, },
@ -32,14 +32,14 @@
}, },
"dom_storage_quota": 200, "dom_storage_quota": 200,
"id": "jid1-x7bV5evAaI1P9Q", "id": "jid1-x7bV5evAaI1P9Q",
"homepage": "https://github.com/bitpay/copay", "homepage": "*URL*",
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"url": "git://github.com/bitpay/copay.git", "url": "*GITHUBREPOURL*",
"type": "git" "type": "git"
}, },
"bugs": { "bugs": {
"url": "https://github.com/bitpay/copay/issues" "url": "*GITHUBREPOBUGS*"
}, },
"dependencies": { "dependencies": {
"adm-zip": "^0.4.7", "adm-zip": "^0.4.7",
@ -82,22 +82,41 @@
"load-grunt-tasks": "^3.5.0", "load-grunt-tasks": "^3.5.0",
"mocha": "^2.4.5", "mocha": "^2.4.5",
"phantomjs-prebuilt": "^2.1.7", "phantomjs-prebuilt": "^2.1.7",
"shelljs": "^0.3.0", "shelljs": "^0.3.0"
"xcode": "^0.8.2"
}, },
"scripts": { "scripts": {
"preinstall": "bower install && npm i fs-extra", "preinstall": "bower install && npm i fs-extra",
"build": "grunt", "postinstall": "npm run apply:bitpay && cordova prepare",
"apply:copay": "cd app-template && node apply.js", "start": "npm run build:www && ionic serve --nolivereload --nogulp -s",
"apply:bitpay-wallet": "cd app-template && node apply.js bitpay-wallet", "start:ios": "npm run build:www && npm run build:ios && npm run open:ios",
"start": "npm run build && node app.js", "start:android": "npm run build:www && npm run build:android && npm run run:android",
"watch": "grunt watch", "watch": "grunt watch",
"test": "./node_modules/.bin/grunt test-coveralls", "build:www": "grunt",
"clean": "git clean -dfx", "build:www-release": "grunt prod",
"start:ios": "npm run build && cd cordova && trash project-ios && make ios && open project-ios/platforms/ios/BitPay\\ Wallet.xcodeproj", "build:ios": "cordova prepare ios && cordova build ios --debug",
"start:android": "npm run build && cd cordova && trash project-android && make android && open -a /Applications/Android\\ Studio.app project-android/platforms/android" "build:android": "cordova prepare android && cordova build android --debug",
"build:ios-release": "cordova prepare ios && cordova build ios --release",
"build:android-release": "cordova prepare android && cordova build android --release",
"open:ios": "open platforms/ios/*.xcodeproj",
"open:android": "open -a open -a /Applications/Android\\ Studio.app platforms/android",
"final:www": "npm run clean-all && npm run build:www-release",
"final:ios": "npm run final:www && npm run build:ios-release && npm run open:ios",
"final:android": "npm run final:www && npm run build:android-release && npm run run:android",
"run:android": "cordova run android --device",
"log:android": "adb logcat | grep chromium",
"apply:copay": "cd app-template && node apply.js copay",
"apply:bitpay": "cd app-template && node apply.js bitpay",
"test": "./node_modules/.bin/grunt test-coveralls",
"clean": "trash platforms && trash plugins && npm run postinstall",
"clean-all": "git clean -dfx && npm install"
}, },
"devDependencies": { "devDependencies": {
"trash-cli": "^1.4.0" "androidmanifest": "^2.0.0",
"cordova": "^5.4.1",
"globby": "^6.0.0",
"ionic": "^2.1.0",
"plist": "^2.0.1",
"trash-cli": "^1.4.0",
"xcode": "^0.8.2"
} }
} }

View file

@ -8,7 +8,7 @@
#define MyAppExeName "*PACKAGENAME.exe" #define MyAppExeName "*PACKAGENAME.exe"
[Setup] [Setup]
AppId={{804636ee-b017-4cad-8719-e58ac97ffa5c} AppId={804636ee-b017-4cad-8719-e58ac97ffa5c}
AppName={#MyAppName} AppName={#MyAppName}
AppVersion={#MyAppVersion} AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion} ;AppVerName={#MyAppName} {#MyAppVersion}

View file

@ -1,4 +1,9 @@
{ {
"//":"PLEASE! Do not edit this file directly",
"//":" Modify it at app-template/",
"name": "bitpay",
"description": "Secure Bitcoin Storage",
"author": "BitPay", "author": "BitPay",
"version": "0.14.0", "version": "0.14.0",
"keywords": [ "keywords": [
@ -9,14 +14,35 @@
"multisignature", "multisignature",
"bitcore" "bitcore"
], ],
"homepage": "https://github.com/bitpay/copay", "main": "www/index.html",
"window": {
"title": "BitPay - Secure Bitcoin Wallet",
"icon": "www/img/icon-128.png",
"toolbar": false,
"show": true,
"visible": true,
"resizable": true,
"frame": true,
"width": 400,
"height": 650,
"position": "center",
"fullscreen": false
},
"webkit": {
"page-cache": false,
"java": false,
"plugin": false
},
"dom_storage_quota": 200,
"id": "jid1-x7bV5evAaI1P9Q",
"homepage": "https://bitpay.com",
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"url": "git://github.com/bitpay/copay.git", "url": "git://github.com/bitpay/bitpay-wallet.git",
"type": "git" "type": "git"
}, },
"bugs": { "bugs": {
"url": "https://github.com/bitpay/copay/issues" "url": "https://github.com/bitpay/bitpay-wallet/issues"
}, },
"dependencies": { "dependencies": {
"adm-zip": "^0.4.7", "adm-zip": "^0.4.7",
@ -59,7 +85,6 @@
"karma-sinon": "^1.0.5", "karma-sinon": "^1.0.5",
"load-grunt-tasks": "^3.5.0", "load-grunt-tasks": "^3.5.0",
"mocha": "^2.4.5", "mocha": "^2.4.5",
"pbkdf2": "^3.0.4",
"phantomjs-prebuilt": "^2.1.7", "phantomjs-prebuilt": "^2.1.7",
"shelljs": "^0.3.0" "shelljs": "^0.3.0"
}, },

View file

@ -8,7 +8,7 @@
#define MyAppExeName "*PACKAGENAME.exe" #define MyAppExeName "*PACKAGENAME.exe"
[Setup] [Setup]
AppId={{804636ee-b017-4cad-8719-e58ac97ffa5c} AppId={804636ee-b017-4cad-8719-e58ac97ffa5c}
AppName={#MyAppName} AppName={#MyAppName}
AppVersion={#MyAppVersion} AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion} ;AppVerName={#MyAppName} {#MyAppVersion}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before After
Before After

BIN
www/img/icon-128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB