-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
nexe converted node.js file no longer produces valid Mach-O (fails codesign) #494
Comments
@kgaidis can you mention which version worked for you? Were you able to build and sign for Node 10.3 with the latest or the previous one? |
@calebboyd - is there any current path to get nexe to create a signable binary on mac w/ a resource file? Is there any current path that works without a resource? I've been trawling through the various linked issues/comments/etc. and can't get anything usable to work. |
OSX signing is evil. Now trying to upgrade from node 6.9.11 to node 12.10.0 using latest nexe... more heavy nexe modifications required :) (but once done the OSX should still be fine). p.s. if someone really wants a challenge, check out my fork of isign - OSX signing without OSX - I gave up at the last hurdle, but maybe someone with better python/openssl experience can take it on.... |
Hey @btsimonh - Are you able to sign your MacOS binaries built with Node 12 or 14? If yes, what are you using for this? I am pretty lost at this point. Not seeing a way forward! |
yes, actually build node 12.13.0 version in dec, and the process works fine. Remember, your executable CANNOT have anything appended to it - your packaged filesystem MUST be separate or INSIDE. External filesystem can then be delivered in the signed app folder structure - mine is in a bin file in Resources. Signs and notifies fine using the normal OSX signing on Mojave. |
@btsimonh - This is just great to know! Would it be possible for you to provide some guidance on how to do this? What kind of changes did you have to do to nexe? It would be so amazing to get the Mac binary built by nexe signed and then embed into the Mac App to get the same notarized. |
my nexe is fairly 'standard' - its the filesystem which is special (and proprietary). Needless to say, you need the exe to be complete and not appended to, and your data in a separate file. Once you have that, it's a normal OSX app.... |
@btsimonh - If your nexe is 'standard', how does it know to look for the data file? 😃 It's obviously great (and miraculous for me) that you have got this to work. But it sounds too complex for someone like me with just JS knowledge to get this to work without some helping hand or help content. I will give it a go and see if I can take this anywhere forward. Thanks for the help. Edit: Did you use isign anywhere in this process? |
The signing is: and test: what fun OSX is! |
This is a
Hi,
I used nexe to transform a Node.js file to an executable used by a macOS application.
I recently updated to
2.0.0-rc.29
(from a version a ~year ago) and it no longer works.First, I had an issue where Xcode
codesign
would fail:That got fixed by the following issues / hack:
#446
#470
But then I had another error:
These are the "imports" I used:
I guess this is a result of "resources" not working:
Is there any way around this? Maybe I should use something else? Or maybe there is planned support for it?
Thank you, and I appreciate the library. It helped to quickly transform code written in Node to be used in macOS.
The text was updated successfully, but these errors were encountered: