Skip to content
Permalink
Browse files

Keep QGIS Browser alias on Mac from duplicating

  • Loading branch information
dakcarto committed Aug 2, 2012
1 parent 539b7cb commit b1b77a32436c2f7e6234dbcafb609f0d8d781be3
Showing with 5 additions and 1 deletion.
  1. +5 −1 images/icons/mac/browser/CMakeLists.txt
@@ -2,5 +2,9 @@
FILE (GLOB ICONS *.icns)
INSTALL (FILES ${ICONS}
DESTINATION "${CMAKE_INSTALL_PREFIX}/${QGIS_BIN_DIR}/QGIS Browser.app/Contents/Resources")
# create alias now, so alias file gets correct icon
# create alias now, so alias file gets correct icon, delete first if it exists
SET (BROWSER_ALIAS "$ENV{DESTDIR}${QGIS_INSTALL_PREFIX}/QGIS Browser.app")
IF (EXISTS ${BROWSER_ALIAS})
FILE (REMOVE ${BROWSER_ALIAS})
ENDIF ()
INSTALL (CODE "EXECUTE_PROCESS(COMMAND osascript -e \"tell application \\\"Finder\\\" to make alias file to POSIX file \\\"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${QGIS_BIN_DIR}/QGIS Browser.app\\\" at POSIX file \\\"$ENV{DESTDIR}${QGIS_INSTALL_PREFIX}/\\\"\")")

0 comments on commit b1b77a3

Please sign in to comment.
You can’t perform that action at this time.