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

Fix to set proper app icon on MacOS. #2180

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

robinverduijn
Copy link
Contributor

@robinverduijn robinverduijn commented Mar 29, 2024

Describe your changes

This sets the app icon properly so that when built on MacOS, the app icon shows as intended. While the favicon.icns file appears to be specified in some places, it's necessary to include it in the Resources folder and the appropriate executable manifest for it to actually be used on MacOS.

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • I have added thorough documentation for my code.
  • I have tagged PR with relevant project labels. I acknowledge that a PR without labels may be dismissed.
    • I am unable to apply any labels myself. It would probably be an Enhancement
  • If this PR addresses a bug, I have provided both a screenshot/video of the original bug and the working solution.

Demo

Before fix With fix in place
Dock Screenshot 2024-03-29 at 1 06 32 PM Screenshot 2024-03-29 at 1 00 18 PM
Icon Screenshot 2024-03-29 at 1 07 11 PM Screenshot 2024-03-29 at 1 10 27 PM

Steps to Reproduce

Build the app and check the build output folder (e.g. build-gpt4all-chat-Desktop_arm_darwin_generic_mach_o_64bit-Release/bin) to view the app icon. It should be the GPT4All icon from favicon.icns. After applying the fix, it may be necessary to manually remove the build output dir and run Clean on the project to handle caching around the app icon.

Notes

Signed-off-by: Robin Verduijn <robinverduijn.github@gmail.com>
@manyoso manyoso merged commit 4852d39 into nomic-ai:main Apr 1, 2024
1 check passed
@robinverduijn robinverduijn deleted the feat/macos-app-icon branch April 1, 2024 19:55
cebtenzzre added a commit that referenced this pull request May 8, 2024
This has been redundant since PR #2180.

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
manyoso pushed a commit that referenced this pull request May 9, 2024
* chat: fix window icon on Windows

Signed-off-by: Jared Van Bortel <jared@nomic.ai>

* chat: remove redundant copy of macOS app icon

This has been redundant since PR #2180.

Signed-off-by: Jared Van Bortel <jared@nomic.ai>

---------

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants