Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig committed Aug 29, 2023
1 parent 73359fc commit bde03c7
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 5 deletions.
58 changes: 58 additions & 0 deletions Formula/profilecli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
class Profilecli < Formula
desc "Open source continuous profiling software"
homepage "https://grafana.com/oss/pyroscope/"
version "1.0.0"
license "AGPL-3.0-only"

on_macos do
if Hardware::CPU.intel?
url "https://github.com/grafana/pyroscope/releases/download/v1.0.0/profilecli_1.0.0_darwin_amd64.tar.gz"
sha256 "70fe31047f62188cbb8106920f0050da5dc21135d804bcbcf92cfb82837e7cd0"

def install
bin.install "profilecli"
end
end
if Hardware::CPU.arm?
url "https://github.com/grafana/pyroscope/releases/download/v1.0.0/profilecli_1.0.0_darwin_arm64.tar.gz"
sha256 "4ea53282e35a65aa0dee6706bbfb4bb213dd74a7c9fab2e34c8ca9efe891f3b4"

def install
bin.install "profilecli"
end
end
end

on_linux do
if Hardware::CPU.intel?
url "https://github.com/grafana/pyroscope/releases/download/v1.0.0/profilecli_1.0.0_linux_amd64.tar.gz"
sha256 "2203faf901ff538833b159ed03d6e0006ba8618e0d6230a0a2d88e2677f54913"

def install
bin.install "profilecli"
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/grafana/pyroscope/releases/download/v1.0.0/profilecli_1.0.0_linux_arm64.tar.gz"
sha256 "438ff2a21c1117275f0e2940b9acb6985cae30892634849ff9720de1074115a1"

def install
bin.install "profilecli"
end
end
unless Hardware::CPU.is_64_bit?
url "https://github.com/grafana/pyroscope/releases/download/v1.0.0/profilecli_1.0.0_linux_armv7.tar.gz"
sha256 "45d2f8167f88ee58be57ddbf80184aeeabce3f48964287ec14572f4cbfc78827"

def install
bin.install "profilecli"
end
end
end
end

test do
system bin/"profilecli", "-v"
end
end
8 changes: 3 additions & 5 deletions Formula/pyroscope.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ class Pyroscope < Formula
version "1.0.0"
license "AGPL-3.0-only"

depends_on "git"

def pyroscope_conf
<<~EOS
---
Expand Down Expand Up @@ -35,7 +33,7 @@ def install

on_linux do
if Hardware::CPU.intel?
url "https://github.com/grafana/pyroscope/download/v1.20.0/pyroscope_1.0.0_linux_amd64.tar.gz"
url "https://github.com/grafana/pyroscope/releases/download/v1.0.0/pyroscope_1.0.0_linux_amd64.tar.gz"
sha256 "e08b5c83558efc8e2e3a273f6166c93e3f7d0f8daa98557f2eb05c691480cf66"

def install
Expand All @@ -44,15 +42,15 @@ def install
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/grafana/pyroscope/download/v1.20.0/pyroscope_1.0.0_linux_arm64.tar.gz"
url "https://github.com/grafana/pyroscope/releases/download/v1.0.0/pyroscope_1.0.0_linux_arm64.tar.gz"
sha256 "7360b4c12ffe789e8b12030b164c45299d4514f063d4c7b87498d2aa89c5b0af"

def install
bin.install "pyroscope"
end
end
unless Hardware::CPU.is_64_bit?
url "https://github.com/grafana/pyroscope/download/v1.20.0/pyroscope_1.0.0_linux_armv7.tar.gz"
url "https://github.com/grafana/pyroscope/releases/download/v1.0.0/pyroscope_1.0.0_linux_armv7.tar.gz"
sha256 "eaa32afde7306a4de06bd7a770a677edff733a7c9dbd21fa935c0f3f07850250"

def install
Expand Down

0 comments on commit bde03c7

Please sign in to comment.