A shell script to download, edit the calibre DeDRM plugin for MacOS to allow ripping of DRM from Library/Rented Books, and then import the newly edited plugin into calibre. It was tedious to do this everytime there was a new update to the plugin, so I wrote this short shell script to automate the process instead.
git clone https://github.com/corysolovewicz/update-calibre-dedrm-plugin
cd update-calibre-dedrm-plugin
chmod 755 update_calibre_dedrm_plugin.sh
./update_calibre_dedrm_plugin.sh
or
./update_calibre_dedrm_plugin.sh 6.6.3
This script is based on the this guide
You can also keep Calibre updated by using this tool