Rename installer after build process.
This commit is contained in:
parent
7f7513809a
commit
4ef318c55e
|
@ -1,11 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
version=$(jq -r '.version' ./package.json)
|
||||||
|
|
||||||
node ./scripts/build_and_sign_mac.js
|
node ./scripts/build_and_sign_mac.js
|
||||||
#build dmg for mac install
|
|
||||||
sleep 5s
|
sleep 5s
|
||||||
|
|
||||||
mkdir -p ../dist/installers
|
mkdir -p ../dist/installers
|
||||||
|
|
||||||
./node_modules/.bin/electron-installer-dmg ../dist/mcopy-app-darwin-x64/mcopy-app.app mcopy-app --out=../dist/installers --icon=assets/icons/icon.icns --overwrite
|
./node_modules/.bin/electron-installer-dmg ../dist/mcopy-app-darwin-x64/mcopy-app.app mcopy-app --out=../dist/installers --icon=assets/icons/icon.icns --overwrite
|
||||||
# Path to the icon file that will be the app icon in the DMG window.
|
|
||||||
# --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.
|
mv "../dist/installers/mcopy-app.dmg" "../dist/installers/mcopy-app_${version}.dmg"
|
||||||
#--overwrite Overwrite any existing DMG.
|
|
Loading…
Reference in New Issue