Skip to content
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

feat: Codesign all binary-like files #169

Merged
merged 1 commit into from
May 4, 2020

Conversation

sethlu
Copy link
Contributor

@sethlu sethlu commented Apr 21, 2018

In the current implementation, files with names like .node (.node as the base name, not as a file extension) will be skipped while scanning the application bundle. Testing all possible binary files should help clear the naming ambiguity. Files like .gitignore should still be skipped.

Addresses: #168

cc: @malept

@sethlu sethlu self-assigned this Apr 21, 2018
return getFilePathIfBinaryAsync(filePath)
} // Else reject hidden file
break
case '.dylib': // Dynamic library
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still need to keep .dylib

Copy link
Contributor Author

@sethlu sethlu May 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌 The .dylib files should be detected as a binary file.

@sethlu sethlu force-pushed the codesign-all-binary-like-files branch from 170e8c0 to 533c752 Compare May 4, 2020 07:13
@sethlu sethlu changed the title Codesign all binary-like files feat: Codesign all binary-like files May 4, 2020
@sethlu sethlu force-pushed the codesign-all-binary-like-files branch from 533c752 to 8c3e66a Compare May 4, 2020 07:14
@sethlu sethlu merged commit 63d7b60 into electron:master May 4, 2020
@sethlu
Copy link
Contributor Author

sethlu commented May 4, 2020

We shouldn't need to worry about missing unsigned binary files now with this change merged in.

@vyunikov
Copy link

@sethlu Does it take care of frameworks? Some native modules might have framework dependencies

@sethlu
Copy link
Contributor Author

sethlu commented Jun 22, 2020

@vyunikov All frameworks (.framework directories) are automatically signed if you’re wondering about these 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants