Installing Ghidra as a self-contained OSX .app (without contaminating your system with having to install Java):
- Download and extract the launcher AppleScript template app below. Optionally modify
Ghidra.app/Info.plist
to your liking. - Download the latest OpenJDK and extract it to
Ghidra.app/jdk
. Make sureGhidra.app/jdk/Contents/Home/bin/java
exists. - Download the latest Ghidra and extract it to
Ghidra.app/ghidra
. Make sureGhidra.app/ghidra/ghidraRun
exists. - Copy
Ghidra.app
to your Applications directory.
Note that the template .app is just a standard AppleScript generated .app. If you don't trust the binary, you can build your own with the provided AppleScript.
thanks you @yifanlu you are amazing