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

icons_and_splashscreens.js hook bug on Windows #89

Closed
marob opened this issue Aug 20, 2014 · 2 comments
Closed

icons_and_splashscreens.js hook bug on Windows #89

marob opened this issue Aug 20, 2014 · 2 comments

Comments

@marob
Copy link

marob commented Aug 20, 2014

Hi,

in icons_and_splashscreens.js, the code

cordovaFile.split(path.sep);

is buggy on Windows.

By using path.sep, you assume that cordovaFile has OS-dependent separators but that is not the case: the separator in the files returned by "glob" are "/" even on Windows.
As a result, because path.sep="" on Windows, the split method fails to do the job.

I think you should then replace the previous code by:

cordovaFile.split('/');

Regards

@diegonetto
Copy link
Owner

@marob Thank you so much for discovering this issue. I don't have easy access to a Windows machine, so can you please verify this issue has been resolved in version 0.5.3?

Much appreciated!

@marob
Copy link
Author

marob commented Aug 26, 2014

@diegonetto Yes, it fixes the issue. Thanks.

sidneys added a commit to sidneys/generator-ionic that referenced this issue Aug 26, 2014
* commit 'e5cda9845789c71845694ad19d6782a7f185be93':
  docs(changelog): Update CHANGELOG
  0.5.3
  fix(hook): Change cordovaFile.split() paramater. Closes diegonetto#89
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

No branches or pull requests

2 participants