fix(build): only install the fileicon module on macOS

This commit is contained in:
Jason Dreyzehner 2016-10-26 20:18:34 -04:00
parent 7bf04585a0
commit 8115d15675
2 changed files with 3 additions and 1 deletions

View File

@ -116,6 +116,9 @@ mkdir /Volumes/"${VOL_NAME}"/.background
cp "${DMG_BACKGROUND_IMG}" /Volumes/"${VOL_NAME}"/.background/ cp "${DMG_BACKGROUND_IMG}" /Volumes/"${VOL_NAME}"/.background/
echo "Adding volume icon to disk image" echo "Adding volume icon to disk image"
# we install this here to avoid trying to install it on linux or windows, where
# it fails to install
npm install fileicon
# use fileicon node_module # use fileicon node_module
cp "${DMG_VOLUME_ICON}" /Volumes/"${VOL_NAME}"/.VolumeIcon.icns cp "${DMG_VOLUME_ICON}" /Volumes/"${VOL_NAME}"/.VolumeIcon.icns
`npm bin`/fileicon set /Volumes/"${VOL_NAME}"/ /Volumes/"${VOL_NAME}"/.VolumeIcon.icns `npm bin`/fileicon set /Volumes/"${VOL_NAME}"/ /Volumes/"${VOL_NAME}"/.VolumeIcon.icns

View File

@ -118,7 +118,6 @@
"ionic": "^2.1.0", "ionic": "^2.1.0",
"trash-cli": "^1.4.0", "trash-cli": "^1.4.0",
"lodash": "^4.3.0", "lodash": "^4.3.0",
"fileicon": "^0.1.8",
"pre-commit": "^1.1.3" "pre-commit": "^1.1.3"
}, },
"pre-commit": "unstage-package" "pre-commit": "unstage-package"