Skip to content

Commit

Permalink
moving binary after build so macOS will recognize it as sunshine with…
Browse files Browse the repository at this point in the history
…out the build. added codesigning to make sure macOS asks for permissions
  • Loading branch information
soerenkampschroer committed Oct 31, 2024
1 parent ec0cdcf commit 37795b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packaging/sunshine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,15 @@ def install
system "make"
system "make", "install"

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

bin.install "tests/test_sunshine"
end

# Codesign the installed binary
system "codesign", "-s", "-", "--force", "--deep", "#{bin}/sunshine"

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

Expand Down

0 comments on commit 37795b2

Please sign in to comment.