2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-09-22 09:39:02 +00:00

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. 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) ##### [iconutil](https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html)
You need [XCode](https://developer.apple.com/xcode/) installed. 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 $ brew install imagemagick
``` ```
Make sure `convert` and `identify` are in your `$PATH`.
##### [Google Chrome](https://www.google.com/chrome/) ##### [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. 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. 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` ###### Manually Converting `.icns`

View File

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