Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions sign-pkg-mac/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ function signloop() {
# we pass the executable to sign as the last argument
# shellcheck disable=SC1083
eval exe=\${$#}

# If the file does not exist, skip signing it
# llplugin and slvoice might be not present
if [[ ! -e "$exe" ]]; then
echo "signloop: file '$exe' does not exist, skipping." >&2
return 0
fi

exe="$(basename "$exe")"
retry_loop "$exe signing" $retries $signwait /usr/bin/codesign "$@"
}
Expand All @@ -81,6 +89,7 @@ resources="$app_path/Contents/Resources"
for signee in \
"$resources"/*.dylib \
"$resources"/llplugin/*.dylib \
"$resources/SLPlugin.app/Contents/Frameworks/Chromium Embedded Framework.framework/Libraries"/*.dylib \
"$app_path/Contents/Frameworks/Chromium Embedded Framework.framework/Libraries"/*.dylib
do
# shellcheck disable=SC2154
Expand Down