You will need to spend a total of 214,950 Glims in order to get all the upgrades, on top of all the materials needed. Whilst that is a lot, by the time you reach the end of the game, you'll have plenty of money. For context, I've bought all the upgrades and have nearly 300k spare, although admittedly, I've played a lot of extra hours. Still, money shouldn't be a problem as long as you're making good use of your time on board your ship at night.