A popular singer who raised thousands of pounds for the NHS during the Covid-19 pandemic by streaming his performances was killed in a bank holiday pub attack by his friend, a court has heard.