From 232db8bce99798581356d944c92eb7a31859f72d Mon Sep 17 00:00:00 2001 From: devsena Date: Wed, 23 Feb 2022 10:22:12 +0530 Subject: [PATCH] - Alert text updated - Admin privilege window message updated #31 --- .../src/actionScripts/utils/SVNMacPortsInstaller.as | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/MoonshineSDKInstaller/src/actionScripts/utils/SVNMacPortsInstaller.as b/MoonshineSDKInstaller/src/actionScripts/utils/SVNMacPortsInstaller.as index 0630920..a3e4a0d 100644 --- a/MoonshineSDKInstaller/src/actionScripts/utils/SVNMacPortsInstaller.as +++ b/MoonshineSDKInstaller/src/actionScripts/utils/SVNMacPortsInstaller.as @@ -45,8 +45,9 @@ package actionScripts.utils if (!HelperUtils.isValidSDKDirectoryBy(ComponentTypes.TYPE_MACPORTS, macPort.installToPath, macPort.pathValidation)) { - var errorMessage:String = "Subversion requires MacPorts to be installed.\nPlease install MacPorts separately.\nInstallation terminates."; - Alert.show(errorMessage, "!Error"); + var errorMessage:String = "Subversion requires MacPorts for installation.\nPlease install MacPorts separately."; + Alert.OK_LABEL = "OK"; + Alert.show(errorMessage, "Error!"); _message = errorMessage; dispatchEvent(new Event(EVENT_INSTALL_TERMINATES)); return; @@ -58,7 +59,7 @@ package actionScripts.utils _message = "Subversion installation in-progress. Please wait."; dispatchEvent(new Event(EVENT_INSTALL_PROGRESS)); - var command:String = "do shell script \"sudo "+ macPort.installToPath +"/port -N install subversion\" with administrator privileges"; + var command:String = "do shell script \"sudo "+ macPort.installToPath +"/port -N install subversion\" with prompt \"Moonshine SDK Installer requires admin privileges to install Subversion with MacPorts.\" with administrator privileges"; customInfo.arguments = Vector.(["-e", command]); customProcess = new NativeProcess(); startShell(true);