Add support for paths with spaces

This commit is contained in:
Manuel Thalmann 2023-05-09 22:20:25 +02:00
parent ee33836d00
commit 1bd405d10f

View file

@ -221,7 +221,8 @@ then
if is_truthy "${NATIVE_WINDOWS}"
then
PROJECT_FILE="$projectFile" LOG_FILE="$logFile" WSLENV="PROJECT_FILE/p:LOG_FILE/p" cmd.exe /c "C:\Keil_v5\UV4\UV4.exe" -j0 -b "%PROJECT_FILE%" -t "$targetName" -l "%LOG_FILE%";
winFile="$(PROJECT_FILE="$projectFile" WSLENV="PROJECT_FILE/p" cmd.exe /c echo "%PROJECT_FILE%")";
LOG_FILE="$logFile" WSLENV="LOG_FILE/p" cmd.exe /c @ "C:\Keil_v5\UV4\UV4.exe" -j0 -b "$winFile" -t "$targetName" -l "%LOG_FILE%";
else
WINEDEBUG=-all,fixme+event xvfb-run bash -c "dwm & wine \"C:\Keil_v5\UV4\UV4.exe\" -j0 -b \"$projectFile\" -t \"$targetName\" -l \"$logFile\"";
fi;