forked from bitpay/wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(desktop): improve desktop build process, update assets
- Loading branch information
Showing
75 changed files
with
130 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,116 +1,18 @@ | ||
{ | ||
"//":"Changes to this file will be overwritten", | ||
"//":" Modify it in the app-template directory", | ||
|
||
"name": "bitpay", | ||
"description": "Secure Bitcoin Wallet", | ||
"author": "BitPay", | ||
"version": "0.14.0", | ||
"keywords": [ | ||
"bitcoin", | ||
"wallet", | ||
"bitpay", | ||
"copay", | ||
"multisignature", | ||
"bitcore" | ||
], | ||
"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 | ||
{ | ||
"name": "distribution-not-selected", | ||
"description": "Choose a distribution by running 'npm run apply:copay' or 'npm run apply:bitpay'.", | ||
"primary-package-json": "See the tempate in app-template/package.json", | ||
"scripts": { | ||
"postinstall": "npm run apply:copay", | ||
"start": "echo && echo \"Choose a distribution by running 'npm run apply:copay' or 'npm run apply:bitpay'.\" && echo", | ||
"preapply": "npm i fs-extra && git update-index --skip-worktree package.json", | ||
"apply:copay": "npm run preapply && cd app-template && node apply.js copay && cd .. && npm i", | ||
"apply:bitpay": "npm run preapply && cd app-template && node apply.js bitpay && cd .. && npm i" | ||
}, | ||
"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/bitpay-wallet/issues" | ||
}, | ||
"dependencies": { | ||
"adm-zip": "^0.4.7", | ||
"angular": "1.4.6", | ||
"angular-mocks": "1.4.10", | ||
"bezier-easing": "^2.0.3", | ||
"bhttp": "^1.2.1", | ||
"bitauth": "^0.3.2", | ||
"bitcore-wallet-client": "4.3.2", | ||
"bower": "^1.7.9", | ||
"chai": "^3.5.0", | ||
"cordova-android": "5.1.1", | ||
"cordova-custom-config": "^3.0.5", | ||
"cordova-plugin-qrscanner": "^2.3.1", | ||
"coveralls": "^2.11.9", | ||
"express": "^4.11.2", | ||
"fs": "0.0.2", | ||
"fs-extra": "^0.30.0", | ||
"grunt-angular-gettext": "^2.2.3", | ||
"grunt-browserify": "^5.0.0", | ||
"grunt-cli": "^1.2.0", | ||
"grunt-contrib-compress": "^1.3.0", | ||
"grunt-contrib-concat": "^1.0.1", | ||
"grunt-contrib-copy": "^1.0.0", | ||
"grunt-contrib-uglify": "^2.0.0", | ||
"grunt-contrib-watch": "^1.0.0", | ||
"grunt-exec": "^1.0.0", | ||
"grunt-nw-builder": "^2.0.3", | ||
"grunt-sass": "^1.2.0", | ||
"load-grunt-tasks": "^3.5.0", | ||
"mocha": "^2.4.5", | ||
"phantomjs-prebuilt": "^2.1.7", | ||
"shelljs": "^0.3.0" | ||
}, | ||
"scripts": { | ||
"preinstall": "bower install && npm install fs-extra", | ||
"postinstall": "echo && echo \"To finish, choose a distribution by running 'npm run apply:copay' or 'npm run apply:bitpay'.\" && echo", | ||
"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", | ||
"start:desktop": "grunt desktop", | ||
"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 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", | ||
"final:desktop": "grunt desktop", | ||
"sign:android": "rm -f platforms/android/build/outputs/apk/android-release-signed-aligned.apk; jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../copay.keystore -signedjar platforms/android/build/outputs/apk/android-release-signed.apk platforms/android/build/outputs/apk/android-release-unsigned.apk copay_play && ../android-sdk-macosx/build-tools/21.1.1/zipalign -v 4 platforms/android/build/outputs/apk/android-release-signed.apk platforms/android/build/outputs/apk/android-release-signed-aligned.apk", | ||
"run:android": "cordova run android --device", | ||
"log:android": "adb logcat | grep chromium", | ||
"apply:copay": "cd app-template && node apply.js copay && cordova prepare", | ||
"apply:bitpay": "cd app-template && node apply.js bitpay && cordova prepare", | ||
"test": "./node_modules/.bin/grunt test-coveralls", | ||
"clean": "trash platforms && trash plugins && cordova prepare", | ||
"clean-all": "git clean -dfx && npm install" | ||
}, | ||
"devDependencies": { | ||
"cordova": "^6.3.1", | ||
"grunt": "^1.0.1", | ||
"ionic": "^2.1.0", | ||
"trash-cli": "^1.4.0", | ||
"lodash": "^4.3.0" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-3 Bytes
(100%)
resources/bitpay/windows/icon/Square150x150Logo.scale-100.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
resources/bitpay/windows/icon/Square150x150Logo.scale-240.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
resources/bitpay/windows/icon/Square30x30Logo.scale-100.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
resources/bitpay/windows/icon/Square310x310Logo.scale-100.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
resources/bitpay/windows/icon/Square44x44Logo.scale-100.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
resources/bitpay/windows/icon/Square44x44Logo.scale-240.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
resources/bitpay/windows/icon/Square70x70Logo.scale-100.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
resources/bitpay/windows/icon/Square71x71Logo.scale-100.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
resources/bitpay/windows/icon/Square71x71Logo.scale-240.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
resources/bitpay/windows/icon/Wide310x150Logo.scale-100.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
resources/bitpay/windows/icon/Wide310x150Logo.scale-240.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This script requires Sketch on macOS – see readme.md for details | ||
|
||
# export all slices marked for export to the proper directory | ||
echo "Exporting all assets from src.sketch..." | ||
sketchtool export layers src.sketch | ||
|
||
function postprocess { | ||
echo "Beginning postprocessing for $1..." | ||
|
||
echo "Postprocessing assets for macOS..." | ||
iconset $1 app | ||
iconset $1 volume-icon | ||
|
||
echo "Creating Retina-ready DMG background..." | ||
tiffutil -cathidpicheck $1/mac/dmg-background.png $1/mac/[email protected] -out $1/mac/dmg-background.tiff | ||
echo "Removing raw background pngs..." | ||
rm $1/mac/dmg-background.png $1/mac/[email protected] | ||
} | ||
|
||
function iconset { | ||
echo "Converting $1 $2 iconset to icns..." | ||
iconutil --convert icns $1/mac/$2.iconset --output $1/mac/$2.icns | ||
echo "Removing $1 $2 iconset..." | ||
rm -r $1/mac/$2.iconset | ||
} | ||
|
||
postprocess copay | ||
postprocess bitpay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This installs sketchtool: https://www.sketchapp.com/tool/ | ||
sh /Applications/Sketch.app/Contents/Resources/sketchtool/install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copay Project Resources | ||
|
||
This directory contains a `src.sketch` file from which all other assets are exported or derived. | ||
|
||
## Requirements | ||
|
||
You'll need [Sketch](https://www.sketchapp.com/) to make any changes to this directory. | ||
|
||
Sketch is only available for macOS, and several processes in `generate.sh` require utilities that ship with the OS, so this process must be performed on macOS. | ||
|
||
## Install sketchtool | ||
|
||
If you do not have `sketchtool` installed, you'll first need to install it. | ||
|
||
```sh | ||
install.sh | ||
``` | ||
|
||
## Generate assets | ||
|
||
To make an update, first make the change in `src.sketch`, then run: | ||
|
||
```sh | ||
sh generate.sh | ||
``` | ||
|
||
## Commit the changes | ||
|
||
Be sure to commit the modified `src.sketch`, as well as any modified exported assets. |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.