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