-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
OS X extend-info not respected for keys set by other options #387
Comments
Problem lies with P.S.: I've done so on my dev machine and the packager now produces the desired package. |
This is by design. What is your reason for overriding that key with a value other than the app name provided to electron-packager? |
Sorry for the late reply but I was gathering the info in order to make my case. I understand that the Let's assume that we are developing a cross-platform Electron app and we want to distribute it in all major platforms (Windows, Mac OS, Linux). Assume that:
The packager currently produces (according to the options in the OP):
Notice the inconsistency with the Menubar Name and Dock Name in OS X. Now, I know that there is no way to align all platforms to use the same pattern, simply because OS X uses So this issue arise the need to override/assign the I see two solution for this:
Note 1: If OS X used Note 2: This issue also relates to #297. |
Speaking as the person who added Since the name winds up being used in a bunch of places (including Info.plist and various filenames in the package), it is best for electron-packager to know the name and set it everywhere. (Rather than allowing It sounds like you want to set the |
@erkyrath The problem doesn't lie with the But that's not what I want, am I? |
You're talking about the (I do this. My app, Lectrote, is an IF interpreter. You can have several IF games open in different windows; each window has the game name for a window title. But the menu bar name (and the dock icon name) is always "Lectrote".) |
@erkyrath No offence, but I'm afraid you are looking at the tree and missing the forest. Yes, Electron can run without any Let's assume that we are not setting a "title" in the
Note: Let me explain what I mean with "Menubar". On Linux/OSX it's the bar on top of the desktop window where the menu options appear. On Windows it's the bar on top of the app window above the menu options. Again, spot the inconsistency across the platforms. Now, I have to agree that using @malept If you feel like not taking any action on this issue, feel free to close it. I can always hack the tool to produce me the desired result, something I rather not prefer doing but if I have no other choice, I will. |
@JimiC When you omit the |
As you can see in the OP in
In my case Are you OK if I use the
In this case if the user doesn't specify the |
@ JimiC: I think you are confusing the window title name (which appears in the Window taskbar, and also above the menu options) with the app title name (which appears in the Mac menu bar and also in the Mac dock). When you set the |
In any case, it sounds like your objection is not the "Electron" column in the above comment, but the use of productName versus name for... hm. I'm still not sure. My basic position here is "You should use the name argument to set CFBundleDisplayName; that's what it's for." You don't want to do that because the name also appears as the containing folder? Do you mean the one that winds up as NAME-darwin-x64? |
@erkyrath That's the thing on Windows and Linux I can set that to use either I want to be able to set Yes, by containing folder I mean |
And btw a great example is VS Code which has |
I'll put my thoughts in more detail later, but I'd rather have a separate parameter specifically for |
According to Apple Developer Docs we should support the assignment of both |
@malept Coming back at this. Would you consider using the |
This has another side effect for users who are upgrading electron applications that were built with an older version of electron-packager where the |
GIven the current title of the issue summary, I'm resolving this as "by design". I think there should be a separate |
When creating a package for OS X and 'extend-info' file is provided, which contains info that the user wants to override (i.e. CFBundleDisplayName), the packager doesn't respect them.
electron-packager version: 7.0.2
Electron version: 1.2.0
OS: OS X 10.11.5 (64bit)
Target Platform: darwin/x64
Options:
The text was updated successfully, but these errors were encountered: