Skip to content

Commit

Permalink
made signing and moving the binary conditional to macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenkampschroer committed Oct 31, 2024
1 parent 37795b2 commit 28fe783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/sunshine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ def install
system "make", "install"

# Move binary instead of symlinking it
bin.install "sunshine-#{ENV["BUILD_VERSION"]}" => "sunshine"
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"
system "codesign", "-s", "-", "--force", "--deep", bin/"sunshine" if OS.mac?

bin.install "src_assets/linux/misc/postinst" if OS.linux?
end
Expand Down

0 comments on commit 28fe783

Please sign in to comment.