-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Exception during running the command from another folder #92
Comments
The first issue was on linux, the same i've got on windows today.
BTW, the path should be |
Which I had a fix about this recently. |
I believe I'm on the latest version.
|
Hmm, the path is coming from here. https://github.com/loopline-systems/electron-builder/blob/master/cli.js#L34 Maybe you could dig a bit or provide me your detailed config so that I can have a look. :) |
@stefanjudis I found the "normalization" here. It explains the problem with linux, but not with windows. |
If you provide me your config I can have a look tonight. |
Sure, I'll provide it later. BTW, relative path is not working, but with absolute path for appPath everything works fine (after removing |
@havenchyk what the state here? Can you please provide your configs and commands? |
@stefanjudis config is the same like you're using in the readme:
But, I pass this config not via cli.js, but directly to the builder.build, so after I can provide PR for it if you would like. |
I don't get that - you're requiring a file that is not public? |
@stefanjudis I'm using electron-builder in the grunt-electron-builder-wrapper. What I do - is var electronBuilder = require('electron-builder').init();
...
electronBuilder.build(options); And options have |
Mmmmh... I see... Sorry - forgot about the grunt counterpart. And forgot that but there shouldn't be the need to fix it in several places - the installers itself (
|
I think, that this check should be made inside the Also I think that user of the module should be able to pass relative path as well. So we need to do additional check for win and mac:
|
I needed it in first place and I am on a mac - so I'm not sure about that.
Totally agree on that one. But that doesn't mean we have to treat it in So about the points:
This can be done by simply using
I really would like to double check that. Are you on a mac to prove it? To sum up - what I'd like to do is checking the path handling in |
I can check only on windows and linux. I'm mostly working on linux, so it was an issue for me. And yes, |
Well then PR it - and I'll check it. :)
Well not really - because it will go into wine and NSIS and these want windows paths. :) |
Always use absolute appPath. Fixes #92
Hi, during running the script not from the folder where electron is located, I've got
Could you @stefanjudis assist to find the correct place where fix should be added?
The text was updated successfully, but these errors were encountered: