Globalizing F-invariants