fix(ci): avoid hung CI jobs while notarizing the kopia app on MacOS (#3168)

Avoid hanging while notarizing the UI on MacOS for PRs in the same repo.

Unset various variables, including KOPIA_UI_NOTARIZE,  when
FORCE_KOPIA_UI_SIGN is not specified
This commit is contained in:
Julio Lopez
2023-07-21 11:33:40 -07:00
committed by GitHub
parent ad9d51f3a9
commit ca6d6acad8

View File

@@ -25,11 +25,20 @@ endif
else
# not running on Travis, or Travis in PR mode, don't build installer and don't publish
# Running as part of a pull_request event on GH, or outside a GH workflow, then
# don't build installer and don't publish
ifneq ($(FORCE_KOPIA_UI_SIGN),)
electron_builder_flags+=--dir
endif
else
# unset CSC_LINK completely, otherwise electron builder hangs attempting to
# notarize.
unexport CSC_LINK
unexport CSC_KEY_PASSWORD
unexport KOPIA_UI_NOTARIZE
endif
endif
# empty CSC_LINK, unset completely since empty value confuses electron builder.