Fix escapes in MacOS launch script

This commit is contained in:
Veronica Berglyd Olsen
2024-04-20 21:36:09 +02:00
parent e8bd9b21b5
commit 221b38c766
+2 -2
View File
@@ -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