Skip to content

Commit

Permalink
Update LizardByte/Sunshine to 14ed89da0e737c4a9b9c1cf8e42ea996d95946be
Browse files Browse the repository at this point in the history
  • Loading branch information
LizardByte-bot committed Apr 7, 2024
1 parent 751667a commit 8ef51a1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Formula/s/sunshine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,34 @@ class Sunshine < Formula
homepage "https://app.lizardbyte.dev/Sunshine"
url "https://github.com/LizardByte/Sunshine.git",
tag: "master"
version "0.22.2"
version "0.23.0"
license all_of: ["GPL-3.0-only"]
head "https://github.com/LizardByte/Sunshine.git", branch: "nightly"

depends_on "boost" => :build
depends_on "cmake" => :build
depends_on "node" => :build
depends_on "pkg-config" => :build
depends_on "curl"
depends_on "miniupnpc"
depends_on "node"
depends_on "openssl"
depends_on "opus"

def install
args = %W[
-DBUIld_WERROR=ON
-DBUILD_WERROR=ON
-DCMAKE_INSTALL_PREFIX=#{prefix}
-DOPENSSL_ROOT_DIR=#{Formula["openssl"].opt_prefix}
-DSUNSHINE_ASSETS_DIR=sunshine/assets
-DSUNSHINE_BUILD_HOMEBREW=ON
-DTESTS_ENABLE_PYTHON_TESTS=OFF
]
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, *args

cd "build" do
system "make", "-j"
system "make", "install"
bin.install "tests/test_sunshine"
end
end

Expand All @@ -54,9 +56,10 @@ def caveats

test do
# test that the binary runs at all
output = shell_output("#{bin}/sunshine --version").strip
puts output
system "#{bin}/sunshine", "--version"

# TODO: add unit tests
# run the test suite
# cannot build tests with python tests because homebrew destroys the source directory
system "#{bin}/test_sunshine", "--gtest_color=yes"
end
end

0 comments on commit 8ef51a1

Please sign in to comment.