You've already forked homebrew-objdiff
Initial commit
This commit is contained in:
38
Formula/objdiff.rb
Normal file
38
Formula/objdiff.rb
Normal file
@@ -0,0 +1,38 @@
|
||||
class Objdiff < Formula
|
||||
desc "Visual diff tool for object files in decompilation projects"
|
||||
homepage "https://github.com/encounter/objdiff"
|
||||
version "3.7.1"
|
||||
license "MIT OR Apache-2.0"
|
||||
|
||||
on_macos do
|
||||
on_arm do
|
||||
url "https://github.com/encounter/objdiff/releases/download/v#{version}/objdiff-macos-arm64"
|
||||
sha256 "fcb2492d4f123e9c43b83c5ea0acaf079b6dc92b3e53e1d0307f6664fe803686" # objdiff-macos-arm64
|
||||
end
|
||||
on_intel do
|
||||
url "https://github.com/encounter/objdiff/releases/download/v#{version}/objdiff-macos-x86_64"
|
||||
sha256 "a1e80f9c5494adb604d2be61361196d7f2cc9415dcf3a05d0cc4a0529e6eb6fb" # objdiff-macos-x86_64
|
||||
end
|
||||
end
|
||||
|
||||
on_linux do
|
||||
on_intel do
|
||||
url "https://github.com/encounter/objdiff/releases/download/v#{version}/objdiff-linux-x86_64"
|
||||
sha256 "2e904f63258fcee5f98e6d36594a2fcea250caacfe97c49b4544470d6805aaaf" # objdiff-linux-x86_64
|
||||
end
|
||||
end
|
||||
|
||||
def install
|
||||
if OS.mac?
|
||||
arch = Hardware::CPU.arm? ? "arm64" : "x86_64"
|
||||
bin.install "objdiff-macos-#{arch}" => "objdiff"
|
||||
else
|
||||
bin.install "objdiff-linux-x86_64" => "objdiff"
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
# GUI won't run headless; just verify the binary exists and is executable
|
||||
assert_predicate bin/"objdiff", :exist?
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user