electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.57k stars 1.73k forks source link

7zip-bin-mac/7za: Error: spawn EACCES #2044

Closed krainboltgreene closed 7 years ago

krainboltgreene commented 7 years ago

For some reason this line

https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/src/packager/dirPackager.ts#L57

is crapping out with EACCES. The bin definitely exists on my harddrive at the location it's trying to see.

krainboltgreene commented 7 years ago

Changing the permissions of the file to 755 has "resolved" the issue

hovancik commented 7 years ago

Same issue here. @krainboltgreene what file do you mean? 7za binary?

krainboltgreene commented 7 years ago

Yes, that file exactly.

develar commented 7 years ago

Cannot believe. File permissions is ok. It was some local issue, I guess . Closed for now.

r4zzz4k commented 7 years ago

Nope, just updated my dependencies and got the same thing. chmod +x node_modules/7zip-bin-linux/x64/7za fixes it. I'm off, unfortunately, so can't investigate right now.

hovancik commented 7 years ago

I have the same on 2 different macs (also fixed with chmod +x node_modules/7zip-bin-mac/7za)

jmsaavedra commented 6 years ago

Same problem, same fix worked: chmod +x node_modules/7zip-bin-mac/7za

Thanks!

krainboltgreene commented 6 years ago

Looks like this was solved in a recent npm patch.

blacklightpy commented 5 months ago

Looks like this was solved in a recent npm patch.

I don't think so