mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-22 06:43:54 -07:00
be extremely defensive against malformed input
This commit is contained in:
parent
629af67d82
commit
8b95c10bac
1 changed files with 4 additions and 4 deletions
|
|
@ -69,17 +69,17 @@ fix_app() {
|
||||||
|
|
||||||
# 1. Remove quarantine
|
# 1. Remove quarantine
|
||||||
echo " Removing quarantine..."
|
echo " Removing quarantine..."
|
||||||
xattr -dr com.apple.quarantine "$resolved_app"
|
xattr -dr com.apple.quarantine -- "$resolved_app"
|
||||||
|
|
||||||
# 2. Ad-hoc sign all binaries and dylibs
|
# 2. Ad-hoc sign all binaries and dylibs
|
||||||
echo " Signing dylibs, frameworks and executables..."
|
echo " Signing dylibs, frameworks and executables..."
|
||||||
# find .dylib files by name and executable files (binaries, frameworks, etc.) by permission via `-perm +111`
|
# find .dylib files by name and executable files (binaries, frameworks, etc.) by permission via `-perm +111`
|
||||||
find "$resolved_app" -type f \( -name "*.dylib" -o -perm +111 \) -print0 | \
|
find -- "$resolved_app" -type f \( -name "*.dylib" -o -perm +111 \) -print0 | \
|
||||||
xargs -0 -I {} codesign -s - -f {}
|
xargs -0 -I {} codesign -s - -f -- {}
|
||||||
|
|
||||||
# 3. Deep sign the app bundle
|
# 3. Deep sign the app bundle
|
||||||
echo " Deep signing app bundle..."
|
echo " Deep signing app bundle..."
|
||||||
codesign -s - --force --deep "$resolved_app"
|
codesign -s - --force --deep -- "$resolved_app"
|
||||||
|
|
||||||
echo " Done."
|
echo " Done."
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue