-
-
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
getFilePathIfBinarySync should not rely on filename and extname #6010
Comments
Hi there! For the interim, there's a electron-builder/packages/app-builder-lib/electron-osx-sign/sign.js Lines 135 to 141 in 71d3704
|
I think - if ((ext === '' || ext.indexOf(' ') >= 0) && name[0] !== '.') {
return isBinaryFile(filePath) ? filePath : undefined
- } btw: |
Interesting, electron-osx-sign upstream has the code you suggest @develar was there a reason why we manually copied electron-osx-sign into the repo? Curious if we can return back to upstream |
#4656 (comment) I modified the code metioned above inside node_modules as workaround without extra work. 🤒 |
electron-builder/packages/app-builder-lib/electron-osx-sign/util.js
Lines 143 to 162 in 71d3704
I was trying to embed a python into an electron app.
getFilePathIfBinarySync
simply checked the files with blank extname, but files likepython/bin/python3.7
was ignored by the sign process. Also the.so
and.a
files.These files should be included automatically.
The text was updated successfully, but these errors were encountered: