mirror of
https://github.com/kopia/kopia.git
synced 2026-05-24 22:54:55 -04:00
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:
13
app/Makefile
13
app/Makefile
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user