A simple tool to repackage IntelliJ IDEA plugins for K2 mode compatibility.
Use make command to build executables for all platforms:
makeThis will generate executables for:
- Windows:
k2adapter.exe - Linux:
k2adapter - macOS:
k2adapter_mac
- Choose the appropriate executable for your platform
- Run the command with your plugin zip file:
For Windows:
k2adapter.exe -zip "path/to/your/plugin.zip"For Linux:
./k2adapter -zip "path/to/your/plugin.zip"For macOS:
./k2adapter_mac -zip "path/to/your/plugin.zip"- After execution, a new file named
plugin-k2.zipwill be generated in the same directory as your original plugin
# Windows
k2adapter.exe -zip "C:\Downloads\my-plugin.zip"
# Linux/macOS
./k2adapter -zip "./my-plugin.zip"The tool will create a new zip file with "-k2" suffix. For example:
- Original file:
my-plugin.zip - Generated file:
my-plugin-k2.zip
The generated file is ready to use with IDEA's K2 mode.
Make sure you have the correct permissions to read the input file and write to the output directory.