From 9662f0547f116bdd6870ec7c8ab246e95572585f Mon Sep 17 00:00:00 2001 From: doubleyoustew Date: Fri, 1 Nov 2024 15:41:59 +0100 Subject: [PATCH] fix(homebrew): codesign binary only on Intel macOS (#3348) --- packaging/sunshine.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packaging/sunshine.rb b/packaging/sunshine.rb index 1b603fc1..72d0e985 100644 --- a/packaging/sunshine.rb +++ b/packaging/sunshine.rb @@ -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