Skip to content

Commit

Permalink
sonarqube 25.1.0.102122
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewTestBot authored and daeho-ro committed Jan 11, 2025
1 parent 721d56f commit a6e4438
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Formula/s/sonarqube.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Sonarqube < Formula
desc "Manage code quality"
homepage "https://www.sonarsource.com/products/sonarqube/"
url "https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-24.12.0.100206.zip"
sha256 "ac1d7b7e0348bd272b34d9ac037fa4e0835d6fb795f594339e5d698857840ea7"
url "https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-25.1.0.102122.zip"
sha256 "1b37a6d6f882e32208620597706ee336e9a3495acff826421475618dc747feba"
license "LGPL-3.0-or-later"

livecheck do
Expand Down Expand Up @@ -39,6 +39,13 @@ def install
env["PIDDIR"] = var/"run"
platform = OS.mac? ? "macosx-universal-64" : "linux-x86-64"
(bin/"sonar").write_env_script libexec/"bin"/platform/"sonar.sh", env

# Remove incompatible pre-built binaries
cpu = Hardware::CPU.arm? ? "aarch64" : "x64"
dirs = (libexec/"elasticsearch/lib/platform").children
dirs.reject! { |dir| dir.basename.to_s == "linux-x64" }
dirs.reject! { |dir| dir.basename.to_s == "#{OS.kernel_name.downcase}-#{cpu}" }
rm_r dirs
end

def post_install
Expand Down

0 comments on commit a6e4438

Please sign in to comment.