diff --git a/cmake/macos_installer_deps.cmake b/cmake/macos_installer_deps.cmake index 8d55809f1..bab5d6717 100644 --- a/cmake/macos_installer_deps.cmake +++ b/cmake/macos_installer_deps.cmake @@ -70,12 +70,12 @@ if(MACOS_SIGN_APP) endif() if(MACOS_SIGN_APP AND MACOS_SIGN_PKG) - if(NOT MACOS_NOTORIZE_USER) + if(NOT MACOS_NOTARIZE_USER) if(EXISTS "$ENV{HOME}/.notarization.cmake") include("$ENV{HOME}/.notarization.cmake") endif() endif() - if(MACOS_NOTORIZE_USER AND MACOS_NOTORIZE_PASS AND MACOS_NOTORIZE_ASC) + if(MACOS_NOTARIZE_USER AND MACOS_NOTARIZE_PASS AND MACOS_NOTARIZE_ASC) message(STATUS "'notarization' target enabled") configure_file(${CMAKE_SOURCE_DIR}/contrib/macos/notarize.py.in ${CMAKE_CURRENT_BINARY_DIR}/contrib/notarize.py ESCAPE_QUOTES @ONLY) file(COPY ${CMAKE_CURRENT_BINARY_DIR}/contrib/notarize.py DESTINATION ${PROJECT_BINARY_DIR} FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE) diff --git a/docs/macos-signing.txt b/docs/macos-signing.txt index 62a0a6801..9e6f2ba07 100644 --- a/docs/macos-signing.txt +++ b/docs/macos-signing.txt @@ -27,7 +27,7 @@ Either way, these two values can be specified either by hex value or description You also need to set up the notarization parameters; these can either be specified directly on the cmake command line by adding: - -DMACOS_NOTORIZE_ASC=XYZ123 -DMACOS_NOTORIZE_USER=me@example.com -DMACOS_NOTORIZE_PASS=@keychain:codesigning-password + -DMACOS_NOTARIZE_ASC=XYZ123 -DMACOS_NOTARIZE_USER=me@example.com -DMACOS_NOTARIZE_PASS=@keychain:codesigning-password or, more simply, by putting them inside a `~/.notarization.cmake` file that will be included if it exists (and the MACOS_SIGN_* variables are set) -- see below. @@ -60,9 +60,9 @@ Developer account device-specific login credentials. Optionally, put these last three inside a `~/.notarization.cmake` file: - set(MACOS_NOTORIZE_USER "jagerman@jagerman.com") - set(MACOS_NOTORIZE_PASS "@keychain:codesigning-password") - set(MACOS_NOTORIZE_ASC "SUQ8J2PCT7") + set(MACOS_NOTARIZE_USER "jagerman@jagerman.com") + set(MACOS_NOTARIZE_PASS "@keychain:codesigning-password") + set(MACOS_NOTARIZE_ASC "SUQ8J2PCT7") Then, finally, you can build the package from the build directory with: