diff --git a/CHANGELOG.md b/CHANGELOG.md index e7c9033..651585c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## [1.0.0] - 2024-01-30 - Fixed #21, #31 and #34. -- Phidra launcher will no longer terminate Python if a fatal exception occurs when launching, except in GUI mode. +- Pyhidra launcher will no longer terminate Python if a fatal exception occurs when launching, except in GUI mode. - Adds `this` variable to Python scripts to mirror Ghidra's builtin Python script behavior. - Plugins are now compiled targeting JDK 17. - Fixed deprecation warning when compiling plugin. diff --git a/pyhidra/install_plugins.py b/pyhidra/install_plugins.py index 910b8cf..8ec7f54 100644 --- a/pyhidra/install_plugins.py +++ b/pyhidra/install_plugins.py @@ -4,11 +4,13 @@ import argparse from pathlib import Path +import logging import pyhidra if __name__ == "__main__": + logging.basicConfig(level=logging.INFO, format="%(message)s") # spin everything up to ensure all new plugins are installed and exit parser = argparse.ArgumentParser("Install Ghidra Plugins") parser.add_argument( diff --git a/pyhidra/uninstall_plugin.py b/pyhidra/uninstall_plugin.py index 79e3666..0a9f885 100644 --- a/pyhidra/uninstall_plugin.py +++ b/pyhidra/uninstall_plugin.py @@ -4,11 +4,13 @@ import argparse from pathlib import Path +import logging import pyhidra if __name__ == "__main__": + logging.basicConfig(level=logging.INFO, format="%(message)s") parser = argparse.ArgumentParser("Uninstall Ghidra Plugin") parser.add_argument( "PLUGIN_NAME", @@ -26,7 +28,8 @@ args = parser.parse_args() plugin_name = args.PLUGIN_NAME - launcher = pyhidra.HeadlessPyhidraLauncher(install_dir=args.install_dir) + launcher = pyhidra.DeferredPyhidraLauncher(install_dir=args.install_dir) + launcher.start() install_path = launcher.get_install_path(plugin_name) if install_path.exists(): launcher.uninstall_plugin(plugin_name)