Update generate icons info file.

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Ivan Sein 2020-01-09 11:23:48 +01:00
Родитель 355c06ce92
Коммит 7e913d4103
1 изменённых файлов: 17 добавлений и 9 удалений

Просмотреть файл

@ -1,22 +1,30 @@
# Generate app icons from SVG
## Install Inkscape
```
$ brew install caskformula/caskformula/inkscape
```
## Install Inkscape (macOS Mojave)
## Install Inkscape (macOS Mojave or higher)
```
$ brew tap homebrew/cask
$ brew cask install inkscape
```
## Run next commands
## Run next commands (using inkscape 1.0 or higher)
```
$ ruby -e '[29,57,40,50,72,76,1024].each { |x| `inkscape --export-png talk-icon#{x}@1x.png -w #{x} icon-talk-ios.svg` }'
$ ruby -e '[20,29,57,40,50,72,76,1024].each { |x| `inkscape --export-type=png --export-file=talk-icon#{x}@1x.png -w #{x} icon-talk-ios.svg` }'
$ ruby -e '[40,58,80,114,120,80,100,144,152,167].each { |x| `inkscape --export-type=png --export-file=talk-icon#{x}@2x.png -w #{x} icon-talk-ios.svg` }'
$ ruby -e '[60,87,120,180].each { |x| `inkscape --export-type=png --export-file=talk-icon#{x}@3x.png -w #{x} icon-talk-ios.svg` }'
```
## Install Inkscape (old)
```
$ brew install caskformula/caskformula/inkscape
```
## Run next commands (old)
```
$ ruby -e '[20,29,57,40,50,72,76,1024].each { |x| `inkscape --export-png talk-icon#{x}@1x.png -w #{x} icon-talk-ios.svg` }'
$ ruby -e '[40,58,80,114,120,80,100,144,152,167].each { |x| `inkscape --export-png talk-icon#{x}@2x.png -w #{x} icon-talk-ios.svg` }'
$ ruby -e '[60,87,120,180].each { |x| `inkscape --export-png talk-icon#{x}@3x.png -w #{x} icon-talk-ios.svg` }'
```