diff --git a/build-production-mac.sh b/build-production-mac.sh index cce2aea..e4a0b06 100644 --- a/build-production-mac.sh +++ b/build-production-mac.sh @@ -201,13 +201,11 @@ create_launchers() { launch_command="open \"./${app_dir}\"" fi - { - cat <<'CMD' + cat > "$PACKAGE_DIR/Launch-Tetris.command" < "$PACKAGE_DIR/Launch-Tetris.command" + cd "\$(dirname \"\$0\")" + ${launch_command} + EOF chmod +x "$PACKAGE_DIR/Launch-Tetris.command" cat > "$PACKAGE_DIR/README-mac.txt" <