Remove dependency on Sips

Also update documentation for icon conversion dependencies
This commit is contained in:
Jia Hao 2016-03-09 00:01:27 +08:00
parent f48ad3790b
commit 9d1276353e
2 changed files with 3 additions and 9 deletions

View File

@ -43,9 +43,6 @@ $ npm install nativefier -g
To support usage of a `.png` for a packaged OSX app icon (currently only supported on OSX), you need the following dependencies.
##### [sips](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/sips.1.html)
Automatically ships with OSX
##### [iconutil](https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html)
You need [XCode](https://developer.apple.com/xcode/) installed.
@ -56,6 +53,8 @@ You need [XCode](https://developer.apple.com/xcode/) installed.
$ brew install imagemagick
```
Make sure `convert` and `identify` are in your `$PATH`.
##### [Google Chrome](https://www.google.com/chrome/)
Google Chrome is required for flash to be supported. Alternatively, you could download the PepperFlash Chrome plugin and specify the path to it directly with the `--flash` flag. See the command line options below for more details.
@ -172,7 +171,7 @@ The icon parameter should be a path to a `.png` file.
The icon parameter can either be a `.icns` or a `.png` file if the optional dependencies listed [above](#optional-dependencies) are installed.
With the `sips`, `iconutil` and `imagemagick convert` optional dependencies in your `PATH`, Nativefier will automatically convert the `.png` to a `.icns` for you.
With `iconutil`, Imagemagick `convert` and `identify` optional dependencies in your `PATH`, Nativefier will automatically convert the `.png` to a `.icns` for you.
###### Manually Converting `.icns`

View File

@ -9,13 +9,8 @@
# ./pngToIcns.sh ~/sample.png ~/Desktop/converted.icns
# Exec Paths
SIPS=$(which sips)
ICONUTIL=$(which iconutil)
IMAGEMAGICK=$(which convert)
if [ ! -x "${SIPS}" ]; then
echo "Cannot find required sips executable" >&2
exit 1;
fi
if [ ! -x "${ICONUTIL}" ]; then
echo "Cannot find required iconutil executable" >&2
exit 1;