2017-02-09 14:35:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-01-10 04:36:00 +00:00
|
|
|
./node_modules/.bin/electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/icon.icns --prune=true --out=../dist
|
|
|
|
#build dmg for mac install
|
2018-03-03 02:12:06 +00:00
|
|
|
sleep 5s
|
2018-01-10 04:36:00 +00:00
|
|
|
mkdir ../dist/installers
|
2018-03-15 03:43:42 +00:00
|
|
|
./node_modules/.bin/electron-installer-dmg ../dist/mcopy-darwin-x64/mcopy.app mcopy --out=../dist/installers --icon=assets/icons/icon.icns --overwrite
|
2018-03-03 02:12:06 +00:00
|
|
|
# Path to the icon file that will be the app icon in the DMG window.
|
2018-01-10 04:36:00 +00:00
|
|
|
# --icon-size=<px> How big to make the icon for the app in the DMG. [Default: `80`].
|
|
|
|
# --background=<path> Path to a PNG image to use as the background of the DMG.
|
|
|
|
#--overwrite Overwrite any existing DMG.
|