I know nothing about this subject other than what I have picked up over the last week.
I stupidly erased my OS on my HTC EVO 4G.
I successfully flashed JBL v1.9 custom ROM BY Shagnasty. I flashed a zip file from my SD card using TWRP Recovery option.
I tried to do the same with stock ROMs...