Set up sign target dependencies always; mark unsigned package

Even if we aren't codesigning, things like the `package` target expect
to be able to depend on `notarize` (and thus implicitly sign ->
assemble) to require a built package.

Also add a `-UNSIGNED` into the built dmg filename.
dev
Jason Rhinelander 1 month ago
parent ceed8e3238
commit 6e5db4f560
  1. 7
      cmake/macos.cmake

@ -74,6 +74,9 @@ message(STATUS "Using ${CODESIGN_EXT_PROFILE} extension provisioning profile")
set(lokinet_installer "${PROJECT_BINARY_DIR}/Lokinet ${PROJECT_VERSION}")
if(NOT CODESIGN)
set(lokinet_installer "${lokinet_installer}-UNSIGNED")
endif()
set(lokinet_app "${lokinet_installer}/Lokinet.app")
@ -203,9 +206,9 @@ function(macos_target_setup)
COMMAND cp -a "${mac_icon}" "${lokinet_app}/Contents/Resources/icon.icns"
)
if(CODESIGN AND BUILD_GUI)
if(BUILD_GUI)
add_dependencies(sign assemble_gui)
elseif(CODESIGN)
else()
add_dependencies(sign assemble)
endif()
endfunction()

Loading…
Cancel
Save