nunocoracao / blowfish-tools

CLI to initialize a Blowfish project
https://blowfish.page
MIT License
12 stars 4 forks source link

Fix compatibility with Windows #71

Open schellingerhout opened 2 weeks ago

schellingerhout commented 2 weeks ago

Windows can't find some of the utils.run commands or expects \ instead / in paths. This means that Windows users can't create sections or new posts using the client. The problem also exists if running from Git Bash. The solution is to replace the shell commands with fs calls that know how to handle Windows.

schellingerhout commented 2 weeks ago

I just realized that Contributing.md said to use the development branch. I will retarget if needed, but I don't see a development branch

schellingerhout commented 2 weeks ago

I handled the quirks from Windows by using fs.normalize, but also in case of spaces in the filename removing single and double quotes only if they are at the front and back. Powershell also adds an ampersand and space when quoting. These problems are only present when dragging and dropping files