Skip to content
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

fix: support mmdc on windows #319

Merged
merged 2 commits into from
Aug 2, 2024
Merged

fix: support mmdc on windows #319

merged 2 commits into from
Aug 2, 2024

Conversation

bbawj
Copy link
Contributor

@bbawj bbawj commented Jul 31, 2024

I am not sure if Windows platform support is of any importance but I encountered an issue where mmdc cannot be found on Windows. This is due to this issue where Command::new() on Windows works in this way: "if the file has a different extension, a filename including the extension needs to be provided, otherwise the file won’t be found.".

Since mmdc on Windows is an alias for the mmdc.cmd script and not an exe, this updates the name used to find the mmdc tool.

@mfontanini
Copy link
Owner

I am not sure if Windows platform support is of any importance

It is, I just didn't test this properly over there. I assumed since things like invoking cargo or other tools work this would work too but I guess not. Thanks!

@mfontanini
Copy link
Owner

Looks like you need to run cargo fmt for the CI to pass.

@mfontanini mfontanini merged commit 4047edb into mfontanini:master Aug 2, 2024
6 checks passed
@mfontanini
Copy link
Owner

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants