Skip to content

Commit 220c88d

Browse files
committed
Prepare for removal of some files
1 parent e34372f commit 220c88d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sign-pkg-mac/sign.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ function signloop() {
7272
# we pass the executable to sign as the last argument
7373
# shellcheck disable=SC1083
7474
eval exe=\${$#}
75+
76+
# If the file does not exist, skip signing it
77+
# llplugin and slvoice might be not present
78+
if [[ ! -e "$exe" ]]; then
79+
echo "signloop: file '$exe' does not exist, skipping." >&2
80+
return 0
81+
fi
82+
7583
exe="$(basename "$exe")"
7684
retry_loop "$exe signing" $retries $signwait /usr/bin/codesign "$@"
7785
}
@@ -81,6 +89,7 @@ resources="$app_path/Contents/Resources"
8189
for signee in \
8290
"$resources"/*.dylib \
8391
"$resources"/llplugin/*.dylib \
92+
"$resources/SLPlugin.app/Contents/Frameworks/Chromium Embedded Framework.framework/Libraries"/*.dylib \
8493
"$app_path/Contents/Frameworks/Chromium Embedded Framework.framework/Libraries"/*.dylib
8594
do
8695
# shellcheck disable=SC2154

0 commit comments

Comments
 (0)