Skip to content

Commit a8f68dd

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

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
}
@@ -91,6 +99,7 @@ done
9199
for signee in \
92100
"$resources/updater/SLVersionChecker" \
93101
"$resources/SLPlugin.app/Contents/MacOS/SLPlugin" \
102+
"$resources/SLPlugin.app/Contents/Frameworks/Chromium Embedded Framework.framework/Libraries" \
94103
"$resources/SLVoice" \
95104
"$app_path"
96105
do

0 commit comments

Comments
 (0)