I made a linux version of the patcher: https://pastebin.com/iEyApafi
got a little big 'cause I tried to catch all the ways it could go wrong... :p
if you're going to edit it, please make sure to save as Unix/LF, not Windows/CRLF :)
thanks for the tlpatch guys!