| 1 |
# Code signing |
| 2 |
|
| 3 |
if( CMAKE_SYSTEM_NAME MATCHES "Windows" ) |
| 4 |
install( CODE "set( PFX_SIGN_PS_LOCATION \"${CMAKE_SOURCE_DIR}/scripts/build/windows/PfxSign.ps1\") " ) |
| 5 |
install( SCRIPT "scripts/build/windows/PfxSign.cmake" ) |
| 6 |
elseif( CMAKE_SYSTEM_NAME MATCHES "Darwin") |
| 7 |
set_from_env( APPLE_CODESIGN_IDENTITY ) |
| 8 |
set_from_env( APPLE_NOTARIZATION_USER_NAME ) |
| 9 |
set_from_env( APPLE_NOTARIZATION_PASSWORD ) |
| 10 |
|
| 11 |
# Pass arguments to cmake install script |
| 12 |
install( CODE "set( APPLE_CODESIGN_IDENTITY \"${APPLE_CODESIGN_IDENTITY}\" )" ) |
| 13 |
install( CODE "set( APPLE_NOTARIZATION_USER_NAME \"${APPLE_NOTARIZATION_USER_NAME}\" )" ) |
| 14 |
install( CODE "set( APPLE_NOTARIZATION_PASSWORD \"${APPLE_NOTARIZATION_PASSWORD}\" )" ) |
| 15 |
|
| 16 |
install( CODE "set( APP_IDENTIFIER \"org.audacityteam.audacity\" )" ) |
| 17 |
install( CODE "get_filename_component( APP_LOCATION \${CMAKE_INSTALL_PREFIX}/Audacity.app ABSOLUTE )" ) |
| 18 |
install( CODE "set( APPLE_CODESIGN_ENTITLEMENTS ${CMAKE_SOURCE_DIR}/mac/Audacity.entitlements )") |
| 19 |
|
| 20 |
install( SCRIPT "scripts/build/macOS/SignMacos.cmake" ) |
| 21 |
|
| 22 |
if( ${_OPT}perform_notarization ) |
| 23 |
install( SCRIPT "scripts/build/macOS/NotarizeMacos.cmake" ) |
| 24 |
endif() |
| 25 |
endif() |