Skip to content

Commit

Permalink
malimite 1.1 (new cask)
Browse files Browse the repository at this point in the history
Add new cask for Malimite decompiler for iOS and macOS applications.
  • Loading branch information
LaurieWired committed Jan 26, 2025
1 parent 93a326e commit fb9f2e8
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Casks/m/malimite.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
cask "malimite" do
version "1.1"
sha256 "a74fd75844aedec13b523da6f8faaf9ec0c2a37027c4e372f74294ea07069528"

url "https://github.com/LaurieWired/Malimite/releases/download/#{version}/Malimite-1-1.zip"
name "Malimite"
desc "Decompiler for Apple applications"
homepage "https://github.com/LaurieWired/Malimite"

depends_on formula: "java"

stage_only true

postflight do
libexec = "#{HOMEBREW_PREFIX}/libexec/malimite"
bin = "#{HOMEBREW_PREFIX}/bin/malimite"

FileUtils.mkdir_p libexec
FileUtils.mv Dir["#{staged_path}/*"], libexec

File.write(bin, <<~EOS)
#!/bin/bash
exec java -jar "#{libexec}/Malimite-1-1.jar" "$@"
EOS
FileUtils.chmod("+x", bin)
end

uninstall delete: [
"#{HOMEBREW_PREFIX}/bin/malimite",
"#{HOMEBREW_PREFIX}/libexec/malimite",
]

caveats <<~EOS
Ghidra is a recommended dependency for Malimite. You can install it via:
brew install --cask ghidra
EOS
end

0 comments on commit fb9f2e8

Please sign in to comment.