homebrew-core/Formula/jadx.rb
Jia Chen ae1e766bff Update Jadx to 1.0 (#41429)
* Update Jadx to 1.0

* update Jadx to V1.0.0 and fix execute permission

update Jadx to V1.0.0 and fix execute permission

* fix audit error

* update jadx to version 1.0.0

update jadx to version 1.0.0
2019-06-28 23:14:12 +02:00

38 lines
1 KiB
Ruby

class Jadx < Formula
desc "Dex to Java decompiler"
homepage "https://github.com/skylot/jadx"
url "https://github.com/skylot/jadx/releases/download/v1.0.0/jadx-1.0.0.zip"
sha256 "a1d9e9fb1bd3552b03241609c8a2b07ffd97e92e1d8d508fac24fe530a73d60f"
head do
url "https://github.com/skylot/jadx.git"
depends_on "gradle" => :build
depends_on :java => "1.8+"
end
bottle :unneeded
depends_on :java => "1.6+"
resource "sample.apk" do
url "https://github.com/downloads/stephanenicolas/RoboDemo/robodemo-sample-1.0.1.apk"
sha256 "bf3ec04631339538c8edb97ebbd5262c3962c5873a2df9022385156c775eb81f"
end
def install
if build.head?
system "gradle", "clean", "dist"
libexec.install Dir["build/jadx/*"]
else
libexec.install Dir["*"]
end
bin.install_symlink libexec/"bin/jadx"
bin.install_symlink libexec/"bin/jadx-gui"
end
test do
resource("sample.apk").stage do
system "#{bin}/jadx", "-d", "out", "robodemo-sample-1.0.1.apk"
end
end
end