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

Support Windows #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jagthedrummer
Copy link

Fixes #10

The glob package doesn't work with paths that contain back slashes as separators. So to get the icons list to populate properly on Windows we need to convert back slashes to forward slashes before passing the path to globSync.

From the glob README

Please only use forward-slashes in glob expressions.

Though windows uses either / or \ as its path separator, only / characters are used by this glob implementation. You must use forward-slashes only in glob expressions. Back-slashes will always be interpreted as escape characters, not path separators.

@jagthedrummer
Copy link
Author

If anyone else runs into this, in order to make this fix easier to use I've published a temporary fork of the project to npm.

https://www.npmjs.com/package/@jagthedrummer/ember-heroicons

@tzellman
Copy link
Owner

tzellman commented Apr 4, 2024

If anyone else runs into this, in order to make this fix easier to use I've published a temporary fork of the project to npm.

https://www.npmjs.com/package/@jagthedrummer/ember-heroicons

@jagthedrummer I'll try to take a look at this PR so we can get it into this repo. Thanks and apologies for the delay!

@jagthedrummer
Copy link
Author

No worries, @tzellman! I know how it goes. Thanks for the excellent add-on.

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.

Icons are blank in an electron app on Windows
2 participants