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
parent 7edf1b2894
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 = {
'package.json': '/',
'Makefile': 'cordova/',
'ProjectMakefile': 'cordova/',
'config-template.xml': '/',

View File

@ -5,12 +5,13 @@
"purposeLine": "Secure Bitcoin Wallet",
"bundleName": "wallet",
"appUri": "bitpay",
"name": "bitpay",
"nameNoSpace": "bitpay",
"nameCase": "BitPay",
"nameCaseNoSpace": "BitPay",
"gitHubRepoName": "bitpay-wallet",
"gitHubRepoUrl": "git://github.com/bitpay/bitpay-wallet.git",
"gitHubRepoBugs": "https://github.com/bitpay/bitpay-wallet/issues",
"disclaimerUrl": "",
"url": "https://bitpay.com",
"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",
"userVisibleName": "Copay",
"purposeLine": "Copay Bitcoin Wallet",
"bundleName": "copay",
"appUri": "copay",
"name": "copay",
"nameNoSpace": "copay",
"nameCase": "Copay",
"nameCaseNoSpace": "Copay",
"bundleName": "copay",
"gitHubRepoName": "copay",
"gitHubRepoUrl": "git://github.com/bitpay/copay.git",
"gitHubRepoBugs": "https://github.com/bitpay/copay/issues",
"disclaimerUrl": "https://copay.io/disclaimer",
"url": "https://copay.io",
"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",
"window": {
"title": "*USERVISIBLENAME* - *PURPOSELINE*",
"icon": "./www/img/icons/icon-256.png",
"icon": "www/img/icon-128.png",
"toolbar": false,
"show": true,
"visible": true,
"resizable": true,
"frame": true,
"width": 400,
"height": 600,
"height": 650,
"position": "center",
"fullscreen": false
},
@ -32,14 +32,14 @@
},
"dom_storage_quota": 200,
"id": "jid1-x7bV5evAaI1P9Q",
"homepage": "https://github.com/bitpay/copay",
"homepage": "*URL*",
"license": "MIT",
"repository": {
"url": "git://github.com/bitpay/copay.git",
"url": "*GITHUBREPOURL*",
"type": "git"
},
"bugs": {
"url": "https://github.com/bitpay/copay/issues"
"url": "*GITHUBREPOBUGS*"
},
"dependencies": {
"adm-zip": "^0.4.7",
@ -82,22 +82,41 @@
"load-grunt-tasks": "^3.5.0",
"mocha": "^2.4.5",
"phantomjs-prebuilt": "^2.1.7",
"shelljs": "^0.3.0",
"xcode": "^0.8.2"
"shelljs": "^0.3.0"
},
"scripts": {
"preinstall": "bower install && npm i fs-extra",
"build": "grunt",
"apply:copay": "cd app-template && node apply.js",
"apply:bitpay-wallet": "cd app-template && node apply.js bitpay-wallet",
"start": "npm run build && node app.js",
"watch": "grunt watch",
"test": "./node_modules/.bin/grunt test-coveralls",
"clean": "git clean -dfx",
"start:ios": "npm run build && cd cordova && trash project-ios && make ios && open project-ios/platforms/ios/BitPay\\ Wallet.xcodeproj",
"start:android": "npm run build && cd cordova && trash project-android && make android && open -a /Applications/Android\\ Studio.app project-android/platforms/android"
"preinstall": "bower install && npm i fs-extra",
"postinstall": "npm run apply:bitpay && cordova prepare",
"start": "npm run build:www && ionic serve --nolivereload --nogulp -s",
"start:ios": "npm run build:www && npm run build:ios && npm run open:ios",
"start:android": "npm run build:www && npm run build:android && npm run run:android",
"watch": "grunt watch",
"build:www": "grunt",
"build:www-release": "grunt prod",
"build:ios": "cordova prepare ios && cordova build ios --debug",
"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": {
"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"
[Setup]
AppId={{804636ee-b017-4cad-8719-e58ac97ffa5c}
AppId={804636ee-b017-4cad-8719-e58ac97ffa5c}
AppName={#MyAppName}
AppVersion={#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",
"version": "0.14.0",
"keywords": [
@ -9,14 +14,35 @@
"multisignature",
"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",
"repository": {
"url": "git://github.com/bitpay/copay.git",
"url": "git://github.com/bitpay/bitpay-wallet.git",
"type": "git"
},
"bugs": {
"url": "https://github.com/bitpay/copay/issues"
"url": "https://github.com/bitpay/bitpay-wallet/issues"
},
"dependencies": {
"adm-zip": "^0.4.7",
@ -59,7 +85,6 @@
"karma-sinon": "^1.0.5",
"load-grunt-tasks": "^3.5.0",
"mocha": "^2.4.5",
"pbkdf2": "^3.0.4",
"phantomjs-prebuilt": "^2.1.7",
"shelljs": "^0.3.0"
},

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB