-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make windows_buildenv.bat work with spaces in path #4896
Conversation
@@ -150,7 +150,7 @@ EXIT /B 0 | |||
|
|||
:READ_ENVNAME | |||
ECHO Reading name of prebuild environment from "%MIXXX_ROOT%\packaging\windows\build_environment" | |||
SET /P BUILDENV_NAME=<%MIXXX_ROOT%\packaging\windows\build_environment | |||
SET /P BUILDENV_NAME=<"%MIXXX_ROOT%\packaging\windows\build_environment" | |||
SET BUILDENV_NAME=!BUILDENV_NAME:PLATFORM=%PLATFORM%! | |||
SET BUILDENV_NAME=!BUILDENV_NAME:CONFIGURATION=%CONFIGURATION%! | |||
SET RETVAL=%BUILDENV_NAME% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need quotes here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, otherwise the batch file demands a user input.
Thank you. CI is still green. However it would be nice to have a look from a windows user before merge. Can you confirm this is still working for you? |
Can this go to the 2.3 branch? |
I tried this, but it fails in a strange way: Version from Main branch:
Version from this PR:
The download and the unzipping (using 7zip) worked fine, but the CMakeSettings.json output is incomplete: |
That is really weird. The JSON file is generated until FFMPEG and then, out of a sudden,
There's something fishy about the reported "Syntaxfehler". Is your windows_buildenv.bat corrupted maybe? |
I found the issue: My file had Unix line ends. I didn't checked out the whole PR, just downloaded this file. I guess this was my failure. |
Thank you for testing. Did you consider to rebase this to the 2.3 branch? |
Tried, but there are some conflicts... I'd like to keep it on main in this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. LGTM
If the Windows user name contains a space (and so the user directory), the execution of windows_buildenv.bat failed. This fixes it.