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

Windows support? #10

Closed
jacobdeichert opened this issue Jul 16, 2019 · 13 comments · Fixed by #45 or #58
Closed

Windows support? #10

jacobdeichert opened this issue Jul 16, 2019 · 13 comments · Fixed by #45 or #58
Labels
bug Something isn't working

Comments

@jacobdeichert
Copy link
Owner

jacobdeichert commented Jul 16, 2019

Currently, this is unknown. I'm pretty sure the executor logic will need to be adjusted for Windows.

@jacobdeichert jacobdeichert added the enhancement New feature or request label Jul 16, 2019
@Coteh
Copy link

Coteh commented Jul 21, 2019

FWIW, I tried removing all paths to sh.exe from my system (i.e. removing paths such as C:\Program Files\Git\cmd which contains the Git for Windows version of sh, as well as renaming other instances of sh.exe on my system that were being picked up like the ones included with Cmder), ensured that sh was no longer being referenced by running where sh, then tried running mask. I found that the program seems to exit without doing anything nor does it print any sort of error to the terminal.

@jacobdeichert
Copy link
Owner Author

Thanks for checking this! So it sounds like mask works with the git bash shell and probably also Ubuntu on Windows.

@jacobdeichert
Copy link
Owner Author

Oh i misread this clearly. Sounds like mask does not work on windows.

@jacobdeichert jacobdeichert added bug Something isn't working and removed enhancement New feature or request labels Jan 25, 2020
@shanoaice
Copy link

@jakedeichert I suppose if we add PowerShell as a scripting runtime, this could be solved.

@jacobdeichert
Copy link
Owner Author

Adding PowerShell support will probably be useful to people 👍

But mask should also work with WSL and bash/sh scripting. I have a feeling it's also not handling Windows paths correctly...

@tensor-programming
Copy link
Contributor

tensor-programming commented Mar 5, 2020

We're adding mask to our project Tauri, and the powershell support works out of the box it seems. If I add a block to the maskfile.md in the mask repo, that just looks like this:

~~~powershell
Write-Output "Test Output"
cargo build --release
~~~

it runs without an issue.

I've already worked out some stuff for windows support and will create a PR.

@jacobdeichert
Copy link
Owner Author

@tensor-programming wow, really? That must mean that powershell supports a -c arg?

I googled this and can't find anything about powershell -c. That's really good to know if it works.

Does WSL/bash on windows work too?

I maybe can close this issue if both work :)

@tensor-programming
Copy link
Contributor

The -c in powershell is short for -Command.

WSL does work out of the box without any changes. With the PR I made for powershell, I did have to do a little tweaking with the parser to have it ignore powershell and Batch blocks on Linux/WSL. On windows, it ignores shell blocks automatically for some reason which is a nice side effect.

@tensor-programming
Copy link
Contributor

Submitted my PR. If you want, I can add a github action to test and build mask on Windows.

@jacobdeichert
Copy link
Owner Author

jacobdeichert commented Apr 4, 2020

I had to revert the windows PR that was merged.

Reopening until I fix the issue with mask on macOS

@jacobdeichert jacobdeichert reopened this Apr 4, 2020
@tensor-programming
Copy link
Contributor

Ahh, something I couldn't test. Ill have to get one of my devs to take a look from a mac perspective.

@jacobdeichert
Copy link
Owner Author

@tensor-programming no worries at all! I usually test PRs locally but forgot to in this case :)

I'll work on the macOS issue this weekend hopefully 🤞

@jacobdeichert
Copy link
Owner Author

jacobdeichert commented Apr 26, 2020

Released as v0.8.0! https://github.com/jakedeichert/mask/releases/tag/v0.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants