Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Keep QGIS Browser alias on Mac from duplicating
  • Loading branch information
dakcarto committed Aug 2, 2012
1 parent 539b7cb commit b1b77a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion images/icons/mac/browser/CMakeLists.txt
Expand Up @@ -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.