diff --git a/packaging/sunshine.rb b/packaging/sunshine.rb index 1b603fc15fb..ba413b937e1 100644 --- a/packaging/sunshine.rb +++ b/packaging/sunshine.rb @@ -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