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
Rename Binary in OSX (CFBundleExecutable) #195 #244
Conversation
Tackles the issue #195 by renaming the binary to opts.name
@@ -99,6 +100,12 @@ module.exports = { | |||
mv(path.dirname(contentsPath), finalAppPath, cb) | |||
}) | |||
|
|||
if (appPlist.CFBundleExecutable !== 'Electron') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In what case will this value be Electron
? (The bigger question I'm asking is, is the conditional necessary?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True that :)
Thank you for your contribution! Could you add a unit test for your change, to make sure there are no regressions in the future? Additionally, please note that the continuous integration check failed, in that your change does not conform to our coding standards. That will also need to be fixed before this can be merged. |
Any updates on this? It's a pretty annoying bug |
@florian the following needs to happen in order for this to be merged:
Since this hasn't been updated in over a month, feel free to fork this PR and work on it yourself (provided you follow all of the pull request guidelines in our documentation. |
I've run into a weird bug after these changes. I got it resolved, but can't for the life of me pin down the actual cause. I was getting It's an odd thing and I don't expect any further investigation of it as changing the name works. I really just wanted to document it here in case someone else runs into it. |
@Musocrat I can confirm. Thanks for writing the post, it saved me a good amount of time 👍 |
@Musocrat Not quite understand — what was changed to fix? If name should be somehow normalised — it should be done by tool :) |
@develar, the fix is using "my app name" instead of "My App Name". Capitalized names used to work on 5.1.0, but they got broken when I updated to 6.0.2 today. |
@AlicanC Thanks, it will be investigated and fixed in the electron-builder as part of electron-userland/electron-builder#288 |
Tackles the issue #195 by renaming the binary to opts.name