Thread: ePUB Optimizer
View Single Post
Old 09-30-2021, 02:51 PM   #142
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,816
Karma: 6000000
Join Date: Nov 2009
Device: many
Okay, I got it to work on macOS like a charm but I had to fix some executable permissions that were not properly set when the plugin zip was unpacked. For executable scripts used in plugins, I typically have the plugin.py script handle that since all zip utilities handle it differently.

After installing mono on macOS and after installing the ePUBOptimizer plugin in Sigil but before running it yet, use Terminal.app to do the following:

#first check to make sure mono is in the path

which mono

# it should respond with
# /Library/Frameworks/Mono.framework/Versions/Current/Commands/mono

# Then add the user execute permission ot the compiled binaries
# for osx that come with the plugin

cd
cd Library/Application*Support
cd sigil-ebook/sigil/plugins
cd ePUBOptimizer
cd osx
chmod u+x ./gifsicle
chmod u+x ./jpegtran
chmod u+x ./optipng
exit


Then you should be able to use the ePUBOptimizer plugin on macOS successfully but be patient as the first launch of mono takes a lot of time. Subsequent runs of mono are a bit faster.
KevinH is offline   Reply With Quote