> Capitalism as we know it relies on cost of labour to distribute wealth.
But there is no pure capitalism and the government also redistributes wealth.
In an extreme(-ly unlikely) case of everything being automated the government would just redistribute the generated wealth to the populace (assuming a democracy). Apparently the end state of capitalism is socialism.
This is usually where people insist that the corporate overlords will take over and enslave everyone.