-
-
Notifications
You must be signed in to change notification settings - Fork 29
Consolidate OSX signing params #286
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
Conversation
|
For the moment, I want to get a consensus on what the API/CLI params should look like, so I did the docs first. @positlabs per #285 (comment), I don't know what |
|
@malept Do we then feed the |
That was the plan, yes.
That sounds good too, but that should wait until after 6.0.0 is released. |
|
@malept, sorry, I meant I kind of started working on this. Here is my progress, in case it helps: https://github.com/positlabs/electron-packager/blob/master/mac.js#L162-L166 There is some extra logic for handling |
👍 Keeping the logic in electron-packager minimal is a goal of the project. |
|
On https://github.com/positlabs/electron-packager/blob/master/mac.js#L166, I think we may go with identity: signOpts.identity || undefined,
entitlements: signOpts['entitlements'] || undefined,
'entitlements-inherit': signOpts['entitlements-inherit'] || undefined,
binaries: signOpts.binaries || undefinedThen |
|
Do you think this would work? I want to use the whole |
|
I'm not a fan of having parameters be more than one type, but we've already got a precedent with |
|
I updated the description of |
|
Looks good. Should we add docs for |
|
...yeah, why not. It's not too much effort. I really want to feature freeze master so 6.0.0 can get out the door. |
|
@positlabs do you mind writing the docs here (or in a branch of this branch)? I won't be able to get to it until tomorrow at the earliest. |
|
Sure, I can do that now |
|
I can't figure out how to grab this branch. Maybe I have to be an org member? Anyway, here's a snippet from the |
|
This is how I'd do it: |
|
I would prefer it if we have an abbreviated version electron-osx-sign docs (don't say what the defaults are, for example) and make it obvious that for more information, you need to look at the other module's docs. I think I already did that in the readme. |
|
Huh, deleting the repo and re-cloning did the trick. For the sake of brevity, and the fact that these options are documented elsewhere, I think we should only add docs for |
|
I'm thinking if we need to here distinguish |
|
Here's my interpretation of this current discussion: (Please correct me if any's misunderstood.)
On the |
We should address this before this gets merged. Re: the |
|
I have added a few lines here, but I'm unsure of how to merge into this PR.
@sethlu I think we can allow |
|
@positlabs I'll merge it tomorrow. Looks good so far. Do you want to put your initial implementation in there as well? |
@malept nice. I should be able to have electron/osx-sign#24 merged so DEBUG could be supported in a later release.
@positlabs I don' know, because the entitlements specified should be different as well. 😕 |
A warning would be sufficient. So I think what I want to do now is let @positlabs work on their branch (based off of mine), and when they're done, I'll merge that into this branch in a separate PR, then rebase + merge the whole thing into master. Yep, I know it's pretty convoluted. |
|
I think it's just another warning. |
|
I made a noob mistake and assumed
I added some warnings, and my code is here https://github.com/positlabs/electron-packager |
|
I assume you mean https://github.com/positlabs/electron-packager/tree/osx-sign-single-param You may want to run
I don't see why not, from a conceptual standpoint. Try it and see if any tests fail. |
|
@positlabs On the
If those executables are unpacked to a temp dir, those binaries unsigned, it could be possible that they work without sandbox. I'll have a check on this now. |
|
I swear I remember needing to sign these binaries for some reason, but maybe not. Using unsigned binaries in I'm using a lib, node-fluent-ffmpeg, which uses I suppose I could go without asar, but I think this is an issue worth solving. I just submitted a test build with unsigned asar-unpacked binaries, and no errors came up in the upload process. I think that means the code signing was successful. Is there ever a reason to sign extra binaries? |
|
@positlabs is the |
|
@malept, yeah that's all. It just doesn't work because of temp dir path. I'm not even sure if it's really needed, but @sethlu might know more. I can add a warning against it, and comment it out of the docs. I agree it shouldn't hold up v6 any more. https://github.com/positlabs/electron-packager/tree/osx-sign-single-param |
👍 Thanks for doing that. I'm going to (probably tomorrow) merge your branch into mine, squash your commits, and do some documentation fixes before merging this PR into master, and finally release v6.0.0. |
ca58d1d to
dc669ba
Compare
This replaces the "sign" option, to accomodate other platform signing mechanisms. Add warning for binaries sub-option. Add warning if building for the mas target without signing.
ddbc6f5 to
9c83645
Compare
76b4bf6 to
d39fd2e
Compare
|
In addition to documentation tweaks, I had to revert some syntax/API that didn't exist in Node 0.12, and added some testcases. |
|
Just found https://github.com/electron/electron/blob/master/docs/tutorial/application-packaging.md#adding-unpacked-files-in-asar-archive. @positlabs I'll have a check later to see if some binaries present in the asar.unpacked dir will be auto-signed. |
Per discussion in #285, I feel that there are too many OS X signing options, and that it would be better to group them together. This has the added benefit of leaving in room for a potential future Windows signing module to be integrated (#32).
CC: @sethlu