Allow running Keil natively

This commit is contained in:
Manuel Thalmann 2023-04-01 15:02:51 +02:00
parent 989a51b2e0
commit 4096854d8b

View file

@ -218,7 +218,14 @@ then
logFile="$(mktemp)";
if is_truthy "${NATIVE_WINDOWS}"
then
echo "Running on windows natively!";
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%";
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;
mv -f "$tempFile" "$projectFile";
errorPatterns=()