Reviving this topic because it's the first result on google, and the answer to this question is simply nowhere to be found on the internet.
There are a lot of dead ends talking about PokePatch dating 7 years ago, but as of writing that tool seems to be out of commission.
I managed to do it...