-
-
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
makensis.exe fails with yarn 3 when using pnp #6639
Comments
It fails for all pnpm unfortunately. I was able to dig into where it's failing but it's unfortunately, not electron-builder code: I'd love to have pnpm support, but I don't understand how it parses the dependency tree for packaging for electron nor how to write Go. |
Closing this as a duplicate of #6289 |
This doesn't look like a duplicate on #6289 - I'm not bundling dependencies using yarn (bundle is built separately). |
hOLY Moly I was just able to figure it out and it worked! (I can finally build an installer using electron-builder using yarn3) I just found out all we had to do is add the
|
I'm using yarn 3.1.1, but imagine this might affect yarn 2 - seems more of an issue with pnp.
The
ENOENT
seems to be caused by thecwd
location.cwd=C:\Users\<user>\dev\<project>\.yarn\cache\app-builder-lib-npm-22.14.13-a7f366c579-a32a5ef25b.zip\node_modules\app-builder-lib\templates\nsis
is a zip file location / yarn dep which probably needs specific logic to handle. I patch NsisTarget.js so thatcwd
was a local directory, and copied the templates into there fromapp-builder-lib\templates
and now it works.Not sure if I'm missing some option to allow yarn deps to be resolved, but from looking at how
nsisTemplatesDir
- nothing special seems to be happening.The text was updated successfully, but these errors were encountered: