![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 33
Karma: 2114
Join Date: Nov 2021
Device: kindle
|
Can i include .exe and .dll files to my plugin?
I would like to know if I can include .exe and .dll files within my plugin.
Let me explain, I want to add to my plugin, AudioBook_Duration, support for reading .zip and .rar files, with .zip everything goes great with python libraries but with .rar I need an .exe and .dll for windows to run the unrarTool , on linux and mac it can be installed by console. Can I include these .exe and .dll files to decompress them and use them in a transparent way for the user, or should I attach them separately so that the user can add them or not? I do not know if I explain myself, if there is no problem I will add them, as it is easier for the Windows user. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Not a programmer, but Calibre already unpacks RAR formated books.
It might be available to you |
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
![]() Quote:
If you want to use your own wrapper, unrar.dll is located in C:\Program Files\Calibre2\app\bin. |
||
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 33
Karma: 2114
Join Date: Nov 2021
Device: kindle
|
I saw the unrar.dll on app/bin folder but this folder is not the same for everyone, i'm sure there should be a variable for this path.
I'll search about it. i whant to manage as many compresed files as i can but, custom libraries for each extension are a madness. (i saw about pyunpack and patool but i don't know how it work yet) Thx both @theducks @Doitsu |
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,070
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
calibre provides a Python API for RAR files. Using that inside your plugin avoids the need to worry about DLLs at all.
See calibre/utils/unrar.py |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ebook-convert.exe doesn't work with deDRM plugin, unlike GUI or calibredb.exe | fireattack | Conversion | 8 | 09-26-2020 07:14 PM |
Plugin Devs: Should we include a License or COPYING file? | KevinH | Plugins | 3 | 08-15-2017 01:09 PM |
DLL for dumping PDF files from VitalSource Bookshelf | cyanic | Other formats | 1 | 11-08-2015 05:07 AM |
Unhandled exception in calibre.exe (python26.dll) | jusmee | Calibre | 0 | 12-14-2009 12:53 AM |
How to include a pdf crop plugin. | Hanselda | Plugins | 3 | 04-28-2009 08:35 AM |