Re Danny's last post .... that was my 1st thought

Johnny, have you checked the generator output ?
I suspect your problem lies there

Particularly as you've mentioned that it has already overheated the rectifier

I'd be "investigating" the generator

A duff generator will kill a battery too

But if the battery does hold a charge and works on another bike without failing, it's unlikely to be that components fault

Stick at it Johnny and let us know how you get on