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

--icon option does not work under Electron 0.37.4 (darwin) #300

Closed
erkyrath opened this issue Apr 3, 2016 · 4 comments
Closed

--icon option does not work under Electron 0.37.4 (darwin) #300

erkyrath opened this issue Apr 3, 2016 · 4 comments
Labels
bug 🐛 build-target:mac 🍎 Bundling an Electron app specifically for macOS has-pull-request

Comments

@erkyrath
Copy link

erkyrath commented Apr 3, 2016

In Electron 0.37.4, the CFBundleIconFile entry in Electron.app/Contents/Info.plist has been renamed from atom.icns to electron.icns. The associated file in Electron.app/Contents/Resources has also been renamed.

The code in mac.js still copies the --icon argument file to atom.icns, so the file winds up in the wrong place.

(This is electron-packager 6.0.0, but previous versions behaved the same.)

I assume we want to continue supporting old versions of Electron as well as 0.37.4. The fix should therefore involve peeking at the CFBundleIconFile key to copy the file to the right place, or altering the CFBundleIconFile key to match the given --icon filename.

@industral
Copy link

Please update npm package as well. Thanks!

@malept
Copy link
Member

malept commented Apr 5, 2016

I want #298 to be merged before a new release (because it suffers from the same problem).

@phaibin
Copy link

phaibin commented Apr 7, 2016

This is a critical bug. Please release a new npm package ASAP. Thanks!

@malept
Copy link
Member

malept commented Apr 7, 2016

Two workarounds exist, until 6.0.1 is released:

  • Install electron-packager using the GitHub syntax (see npm install --help)
  • Package your Electron app using a version of Electron earlier than 0.37.4, for example 0.37.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 build-target:mac 🍎 Bundling an Electron app specifically for macOS has-pull-request
Projects
None yet
Development

No branches or pull requests

4 participants