1) owns a profitable state company
2) that does not require the cooperation of the population in order to be profitable
...the result is a dictatorship.
There are obviously also counter-examples, but a currently-democratic country finding a new way to make money from natural resources, I wouldn't expect we have a large enough sample size to really say anything about that with certainty.
Edit: The Norway thing being (for those interested):
> [The oil fund] was established in 1990 to invest the surplus revenues of the Norwegian petroleum sector. It has over US$1.3 trillion in assets, including 1.4% of global stocks and shares, making it the world’s largest sovereign wealth fund. In May 2021, it was worth about $248,000 per Norwegian citizen.
https://en.wikipedia.org/wiki/Government_Pension_Fund_of_Nor...
In contrast, El Salvador right now is still fighting barbarism and anarchy.
B makes the colonizing foreign investors richer. It won't do shit for the poor country.