I use a command file to package the plugin and start calibre.
Code:
del "KoboUtilities.zip"
"c:\Program Files\7-Zip\7z.exe" a "KoboUtilities.zip" __init__.py about.txt action.py book.py common_utils.py container.py dialogs.py jobs.py config.py "KoboUtilities_Help.html" plugin-import-name-KoboUtilities.txt run.cmd images/* translations/*.po translations/*.mo
mode 165,999
calibre-debug -s
calibre-customize -a "KoboUtilities.zip"
SET CALIBRE_DEVELOP_FROM=D:\Development\GitHub\calibre\src
calibre-debug -g
That:
- Removes and rebuilds the zip file
- Stops the current calibre session
- Sets the command window size to maximum for my screen
- Adds the plugin to calibre
- Sets an environment variable to point to the calibre source
- Starts calibre in debug mode
Setting the environment variable is only needed if you want to run calibre from source. For a plugin, you don't usually need to.