Apple - How do I change Sourcetree icon shown in Dock?

If anyone is interested, the issue was Pride icon on SourceTree app. I've found the solution here: https://community.atlassian.com/t5/Sourcetree-discussions/The-way-to-change-icon-for-Sourcetree-app/td-p/1110914

  1. Go to https://github.com/alexzielenski/ThemeEngine
  2. Switch to releases tab (I took the latest pre-release)
  3. Download .zip and extract it
  4. Open the Sourcetree.app with right click - show package contents and navigate to Contents/Resources
  5. Copy Assets.car and sourcetree.icns to any folder
  6. Run ThemeEngine from the zip in step 3
  7. In ThemeEngine click "Open Document" and open the Assets.car
  8. Find the icon named Pridetree
  9. Open sourctree.icns with your preferred app - I used preview. Clicked on second icon pressed cmd + a to select whole image and pressed cmd + c to copy it.
  10. Clicked on first image in Pridetree ThemeEngine and pressed cmd + v to paste it.
  11. Repeat with second image.
  12. Save the document
  13. Replace Assets.car in the app Contents/Resources with modified Assets.car.

Do not forget to backup your files. Your are doing this on your own risk as I do not know if it actually breaks the EULA.


Here's a oneliner solution.

Open terminal and type:

perl -i -p -e 's/Pridetree/Bridetree/;' /Applications/Sourcetree.app/Contents/Resources/Assets.car

Restart Sourcetree. App icon will be restored to the default one.

Tags:

Macos

Dock

Icon