mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-25 00:05:24 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			CMake
		
	
	
	
	
	
| if(NOT "$ENV{MACOS_CODE_SIGN_IDENTITY}" STREQUAL "")
 | |
|   # -appstore-compliant will strip away odbc, psql and webengine plugins
 | |
|   execute_process(COMMAND "@PYMACDEPLOYQT_EXECUTABLE@" @QGIS_APP_NAME@.app -codesign=${MACOS_CODE_SIGN_IDENTITY} -sign-for-notarization=${MACOS_CODE_SIGN_IDENTITY}
 | |
|                   WORKING_DIRECTORY ${CPACK_TEMPORARY_DIRECTORY}
 | |
|                   COMMAND_ERROR_IS_FATAL ANY
 | |
|                   )
 | |
| 
 | |
|   if (@CREATE_DMG@)
 | |
|     execute_process(COMMAND create-dmg --volname "@QGIS_APP_NAME@ Installer" --hide-extension @QGIS_APP_NAME@.app --volicon "@CMAKE_SOURCE_DIR@/images/icons/mac/qgis.icns" --background "@CMAKE_SOURCE_DIR@/platform/macos/installer_background.png" --window-pos 200 120 --window-size 512 384 --icon-size 100 --icon "@QGIS_APP_NAME@.app" 130 160 --app-drop-link 400 155 --codesign "${MACOS_CODE_SIGN_IDENTITY}" @CMAKE_BINARY_DIR@/@QGIS_APP_NAME@-Installer.dmg  ${CPACK_TEMPORARY_DIRECTORY}/@QGIS_APP_NAME@.app
 | |
|                     RESULT_VARIABLE CREATE_DMG_FAILURE)
 | |
| 
 | |
|     if(CREATE_DMG_FAILURE)
 | |
|       message(STATUS "Creating dmg failed.")
 | |
|     endif()
 | |
|   endif()
 | |
| else()
 | |
|   # -appstore-compliant will strip away odbc, psql and webengine plugins
 | |
|   execute_process(COMMAND "@PYMACDEPLOYQT_EXECUTABLE@" "@QGIS_APP_NAME@.app"
 | |
|                   WORKING_DIRECTORY ${CPACK_TEMPORARY_DIRECTORY}
 | |
|                   COMMAND_ERROR_IS_FATAL ANY
 | |
|                   )
 | |
| 
 | |
|   if (@CREATE_DMG@)
 | |
|     execute_process(COMMAND create-dmg --volname "@QGIS_APP_NAME@ Installer" --hide-extension @QGIS_APP_NAME@.app --volicon "@CMAKE_SOURCE_DIR@/images/icons/mac/qgis.icns" --background "@CMAKE_SOURCE_DIR@/platform/macos/installer_background.png" --window-pos 200 120 --window-size 512 384 --icon-size 100 --icon "@QGIS_APP_NAME@.app" 130 160 --app-drop-link 400 155 @CMAKE_BINARY_DIR@/@QGIS_APP_NAME@-Installer.dmg ${CPACK_TEMPORARY_DIRECTORY}/@QGIS_APP_NAME@.app
 | |
|                     RESULT_VARIABLE CREATE_DMG_FAILURE)
 | |
| 
 | |
|     if(CREATE_DMG_FAILURE)
 | |
|       message(STATUS "Creating dmg failed.")
 | |
|     endif()
 | |
|   endif()
 | |
| endif()
 |