From a274eb5db3b3b181f5b8d6723fc9322c94ff9a1b Mon Sep 17 00:00:00 2001 From: Vishwas Shashidhar Date: Mon, 27 Nov 2017 10:28:57 +0530 Subject: [PATCH] electron-219: added a pre-install script for macOS --- installer/mac/preinstall.sh | 3 +++ installer/mac/symphony-mac-packager.pkgproj | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 installer/mac/preinstall.sh diff --git a/installer/mac/preinstall.sh b/installer/mac/preinstall.sh new file mode 100644 index 00000000..b722db38 --- /dev/null +++ b/installer/mac/preinstall.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +sudo killall Symphony +sudo rm -rf /Applications/Symphony.app \ No newline at end of file diff --git a/installer/mac/symphony-mac-packager.pkgproj b/installer/mac/symphony-mac-packager.pkgproj index dd617eda..9d135dad 100644 --- a/installer/mac/symphony-mac-packager.pkgproj +++ b/installer/mac/symphony-mac-packager.pkgproj @@ -450,6 +450,13 @@ PATH_TYPE 1 + PREINSTALL_PATH + + PATH + preinstall.sh + PATH_TYPE + 1 + RESOURCES