Skip to content

Commit

Permalink
codesign only on intel macs. not moving the binary anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenkampschroer committed Nov 1, 2024
1 parent 17ca7ab commit 726dc56
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packaging/sunshine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,11 @@ def install
system "make"
system "make", "install"

# Move binary instead of symlinking it
bin.install "sunshine-#{ENV["BUILD_VERSION"]}" => "sunshine" if OS.mac?

bin.install "tests/test_sunshine"
end

# Codesign the installed binary
system "codesign", "-s", "-", "--force", "--deep", bin/"sunshine" if OS.mac?
# 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
Expand Down

0 comments on commit 726dc56

Please sign in to comment.