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.
|