From 221b38c766a92e4d5a2b24753228d28c6d1a4a6a Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 20 Apr 2024 21:36:09 +0200 Subject: [PATCH] Fix escapes in MacOS launch script --- setup/macos/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/macos/build.sh b/setup/macos/build.sh index fd6adf5f..fb33b47f 100755 --- a/setup/macos/build.sh +++ b/setup/macos/build.sh @@ -137,9 +137,9 @@ cp $SRC_DIR/setup/macos/novelwriter.icns novelWriter.app/Contents/Resources/ # Create entry script echo "Creating entry script ..." cat > novelWriter.app/Contents/MacOS/novelWriter << EOF +DIR="\$( cd "\$( dirname "\${BASH_SOURCE[0]}" )" && pwd )" #!/bin/bash -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -$DIR/../Resources/bin/python$PYTHON -sE $DIR/../Resources/novelWriter/novelWriter.py \$@ +\$DIR/../Resources/bin/python -sE \$DIR/../Resources/novelWriter/novelWriter.py \$@ EOF # Make it executable