build(desktop): improve desktop build process, update assets
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 373 KiB After Width: | Height: | Size: 373 KiB |
|
Before Width: | Height: | Size: 725 KiB After Width: | Height: | Size: 725 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 526 KiB After Width: | Height: | Size: 526 KiB |
|
Before Width: | Height: | Size: 550 KiB After Width: | Height: | Size: 550 KiB |
BIN
resources/bitpay/linux/512x512.png
Normal file
|
After Width: | Height: | Size: 195 KiB |
BIN
resources/bitpay/mac/app.icns
Normal file
BIN
resources/bitpay/mac/dmg-background.tiff
Normal file
BIN
resources/bitpay/mac/volume-icon.icns
Normal file
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 6 KiB After Width: | Height: | Size: 6 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 3 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 6 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
BIN
resources/copay/linux/512x512.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
resources/copay/mac/app.icns
Normal file
BIN
resources/copay/mac/dmg-background.tiff
Normal file
BIN
resources/copay/mac/volume-icon.icns
Normal file
28
resources/generate.sh
Normal file
|
|
@ -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/dmg-background@2x.png -out $1/mac/dmg-background.tiff
|
||||
echo "Removing raw background pngs..."
|
||||
rm $1/mac/dmg-background.png $1/mac/dmg-background@2x.png
|
||||
}
|
||||
|
||||
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
|
||||
2
resources/install.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# This installs sketchtool: https://www.sketchapp.com/tool/
|
||||
sh /Applications/Sketch.app/Contents/Resources/sketchtool/install.sh
|
||||
29
resources/readme.md
Normal file
|
|
@ -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.
|
||||