Question [Q] update.zip from recovery.img

How would I make a flashable update.zip from recovery.img?

I have seen it done, I just don't know how to do it. I searched but only found unanswered questions.

Thanks in advance.