fix(build): only install the fileicon module on macOS
This commit is contained in:
parent
7bf04585a0
commit
8115d15675
2 changed files with 3 additions and 1 deletions
|
|
@ -116,6 +116,9 @@ mkdir /Volumes/"${VOL_NAME}"/.background
|
|||
cp "${DMG_BACKGROUND_IMG}" /Volumes/"${VOL_NAME}"/.background/
|
||||
|
||||
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
|
||||
cp "${DMG_VOLUME_ICON}" /Volumes/"${VOL_NAME}"/.VolumeIcon.icns
|
||||
`npm bin`/fileicon set /Volumes/"${VOL_NAME}"/ /Volumes/"${VOL_NAME}"/.VolumeIcon.icns
|
||||
|
|
|
|||
|
|
@ -118,7 +118,6 @@
|
|||
"ionic": "^2.1.0",
|
||||
"trash-cli": "^1.4.0",
|
||||
"lodash": "^4.3.0",
|
||||
"fileicon": "^0.1.8",
|
||||
"pre-commit": "^1.1.3"
|
||||
},
|
||||
"pre-commit": "unstage-package"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue