From bd0bdbfd2e3eeee1890a24e8b04d49cce8dfff7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Sun, 23 Oct 2022 05:09:39 +0100 Subject: [PATCH] Fix base path --- Scripts/install-uvtools.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Scripts/install-uvtools.sh b/Scripts/install-uvtools.sh index ffc8f8d..e495bf8 100644 --- a/Scripts/install-uvtools.sh +++ b/Scripts/install-uvtools.sh @@ -57,20 +57,24 @@ if [ "${OSTYPE:0:6}" == "darwin" ]; then # arm64: Create script on user desktop to run UVtools if [ "$arch_name" == "arm64" ]; then - run_script="$HOME/Desktop/run-uvtools.sh" + run_script="$HOME/Desktop/run-uvtools" echo "#!/bin/bash +cd \"$(dirname \"$0\")\" if [ -f \"$appPath/Contents/MacOS/UVtools.sh\" ]; then bash \"$appPath/Contents/MacOS/UVtools.sh\" & elif [ -f \"UVtools.app/Contents/MacOS/UVtools.sh\" ]; then bash \"UVtools.app/Contents/MacOS/UVtools.sh\" & else - echo \"Error: UVtools.app not found on known paths\" + echo Error: UVtools.app not found on known paths + exit -1 fi + +echo \"You can now close this terminal window.\" " > "$run_script" chmod a+x "$run_script" - echo "Note: Always run \"bash run-uvtools.sh\" from desktop to run UVtools on your mac arm64!" + echo "Note: Always run \"bash run-uvtools\" from desktop to run UVtools on your mac arm64!" fi if [ -f "$appPath/Contents/MacOS/UVtools.sh" ]; then