Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 01-23-2022, 01:41 PM   #1
pandako
Junior Member
pandako began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2020
Device: Kobo Clara HD
calibre-cutomize with portable Calibre

I'm trying to develop a Calibre plugin against a portable Calibre installation. That is, the one available from here: https://calibre-ebook.com/download_portable

Loading my hello world plugin by ZIPing the directory and using the Calibre UI works, but using the calibre-customize tool doesn't.

It seems that when I do

Code:
G:\path\to\portable\calibre\Calibre\calibre-customize.exe -a helloworld.zip
or

Code:
G:\path\to\portable\calibre\Calibre\calibre-customize.exe -b devfolder
they seem to copy the plugin to %appdata%, instead of the portable location. There doesn't seem to be any options in the "-h" page to specify a custom path either.

Can people teach me how calibre-customize can be used with a portable installation?
pandako is offline   Reply With Quote
Old 01-23-2022, 02:05 PM   #2
pandako
Junior Member
pandako began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2020
Device: Kobo Clara HD
Solved it myself after reading the CPP code for the portable executable! (here)

It just needed to set an environmental variable first.

Here's a snippet from my final batch file.

Code:
SET "CALIBRE_CONFIG_DIRECTORY=G:\path\to\portable\calibre\Calibre Settings"
G:\path\to\portable\calibre\Calibre\calibre-customize.exe -a helloworld.zip
G:\path\to\portable\calibre\calibre-portable.exe
pandako is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Portable - Shouldn't PORTABLE Viewer and PORTABLE Editor open WITH the ebook? Highlighter Calibre 2 10-31-2020 05:48 AM
Faire une copie intégrale de Calibre sur Calibre portable lktr45 Software 0 05-27-2020 10:38 AM
Calibre Portable and Assigned Letter to Portable Drive issue nkle1128 Library Management 1 03-11-2017 04:11 PM
How do I import Calibre settings from regular Win Calibre to Calibre Portable? ABW Calibre 9 05-20-2013 02:34 PM
Calibre Portable like the Calibre on PC (espec. settings and plugins)? manawydan Devices 6 01-23-2013 06:45 AM


All times are GMT -4. The time now is 04:58 PM.


MobileRead.com is a privately owned, operated and funded community.