From 4ef318c55e32a85df7ac2ec2a36c627fdfaf8f00 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Tue, 13 Apr 2021 14:45:15 -0400 Subject: [PATCH] Rename installer after build process. --- app/scripts/build_mac.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/scripts/build_mac.sh b/app/scripts/build_mac.sh index c96829f..be58bf3 100644 --- a/app/scripts/build_mac.sh +++ b/app/scripts/build_mac.sh @@ -1,11 +1,14 @@ #!/bin/bash +version=$(jq -r '.version' ./package.json) + node ./scripts/build_and_sign_mac.js -#build dmg for mac install + sleep 5s + 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 -# Path to the icon file that will be the app icon in the DMG window. -# --icon-size= How big to make the icon for the app in the DMG. [Default: `80`]. -# --background= Path to a PNG image to use as the background of the DMG. -#--overwrite Overwrite any existing DMG. \ No newline at end of file + + +mv "../dist/installers/mcopy-app.dmg" "../dist/installers/mcopy-app_${version}.dmg" \ No newline at end of file