0ee2df14bfc42d48b3f61fea4a3f8396f974238a
I2P native plugin generation tool
I wrote this way faster than I documented it. Shocking, right?
This is a handy little tool for assembling I2P plugins when those
plugins don't have a clean way to interface with the JVM, or just don't
need one. Think of it a little like checkinstall
but for I2P Plugins.
Right now it mostly works, and it's pretty cleanly put together.
There are some examples in the Makefile for now.
Here's a copy of the usage while I work on a better README.md:
Usage of i2p.plugin.native:
-author string
Author
-autostart
Start client automatically (default true)
-clientname string
Name of the client, defaults to same as plugin
-command string
Command to start client, defaults to $PLUGIN/lib/exename
-commandargs string
Pass arguments to command
-consoleicon string
Icon to use in console for Web Apps only. Use icondata for native apps.
-consolename string
Name to use in the router console sidebar
-consoleurl string
URL to use in the router console sidebar
-date string
Release Date
-delaystart string
Delay start of client by seconds (default "1")
-desc string
Plugin description
-exename string
Name of the executable the plugin will run, defaults to name
-icondata string
Path to icon for console, which i2p.plugin.native will automatically encode
-installonly
Only allow installing with this plugin, fail if a previous installation exists
-key string
Key to use(omit for su3)
-license string
License of the plugin
-max string
Maximum I2P version
-max-jetty string
Maximum Jetty version
-min string
Minimum I2P version
-min-java string
Minimum Java version
-min-jetty string
Minimum Jetty version
-name string
Name of the plugin
-noautosuffixwindows
Don't automatically add .exe to exename on Windows
-nostart
Don't automatically start the plugin after installing
-nostop
Disable stopping the plugin from the console
-pathcommand
Wrap a command found in the system $PATH, don't prefix the command with $PLUGIN/lib/
-res string
a directory of additional resources to include in the plugin
-restart
Require a router restart after installing or updating the plugin
-signer string
Signer of the plugin
-stopcommand string
Command to stop client, defaults to killall exename
-targetos string
Target to run the plugin on
-updateonly
Only allow updates with this plugin, fail if no previous installation exists
-updateurl string
The URL to retrieve updates from, defaults to website+pluginname.su3
-version string
Version of the plugin
-website string
The website of the plugin
Description
Languages
Go
94.9%
Shell
2.7%
Makefile
2.4%