Browse Source

Icon now also set in MacOS

merge-requests/365/head
eidheim 9 years ago
parent
commit
a237049918
  1. BIN
      share/juci.png
  2. 4
      share/set_icon_macos.py
  3. 4
      src/CMakeLists.txt

BIN
share/juci.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

4
share/set_icon_macos.py

@ -0,0 +1,4 @@
import Cocoa
import sys
Cocoa.NSWorkspace.sharedWorkspace().setIcon_forFile_options_(Cocoa.NSImage.alloc().initWithContentsOfFile_(sys.argv[1].decode('utf-8')), sys.argv[2].decode('utf-8'), 0) or sys.exit("Unable to set file icon")

4
src/CMakeLists.txt

@ -76,6 +76,10 @@ else()
) )
endif() endif()
if(APPLE)
install(CODE "execute_process(COMMAND /usr/bin/python ${CMAKE_SOURCE_DIR}/share/set_icon_macos.py ${CMAKE_SOURCE_DIR}/share/juci.png ${CMAKE_INSTALL_PREFIX}/bin/juci)")
endif()
# add a target to generate API documentation with Doxygen # add a target to generate API documentation with Doxygen
find_package(Plantuml) find_package(Plantuml)
find_package(Doxygen) find_package(Doxygen)

Loading…
Cancel
Save