Skip to content

Commit b7e0c5a

Browse files
committed
Codesign Sharpii on macOS ARM64
1 parent c6f88f3 commit b7e0c5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sh/fetch-sharpii.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ tar -xf "$FILENAME" || {
5353

5454
[ -f "Sharpii" ] && {
5555
echo "Sharpii binary found, moving to ${PREFIX}/bin"
56+
[ "$(uname -s)" = "Darwin" ] && [ "$(uname -m)" = "arm64" ] && {
57+
codesign --sign - --force --preserve-metadata=entitlements,requirements,flags,runtime ./Sharpii
58+
}
5659
mv Sharpii ${PREFIX}/bin/Sharpii || {
5760
echo "Failed to move Sharpii binary to ${PREFIX}/bin"
5861
exit 1

0 commit comments

Comments
 (0)