Skip to content

Commit

Permalink
Remove extraneous Mac browser app aliases from failed builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Oct 5, 2012
1 parent d74d3f8 commit f7198ba
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions images/icons/mac/browser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,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, 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 ()
# could be more than one alias if previous build failed
FILE (GLOB ALIASES "$ENV{DESTDIR}${QGIS_INSTALL_PREFIX}/QGIS Browser.app*")
FOREACH(browserAlias ${ALIASES})
FILE (REMOVE "${browserAlias}")
ENDFOREACH(browserAlias)
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 f7198ba

Please sign in to comment.