fix(homebrew): codesign binary only on Intel macOS (#3348)

This commit is contained in:
doubleyoustew 2024-11-01 15:41:59 +01:00 committed by GitHub
parent f418566b31
commit 9662f0547f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,6 +115,9 @@ class @PROJECT_NAME@ < Formula
bin.install "tests/test_sunshine"
end
# codesign the binary on intel macs
system "codesign", "-s", "-", "--force", "--deep", bin/"sunshine" if OS.mac? && Hardware::CPU.intel?
bin.install "src_assets/linux/misc/postinst" if OS.linux?
end