Libraries should be put in {Sketchbook Directory}/libraries/ to survive upgrades.
Board variants should be put in {Sketchbook Directory}/hardware/ to survive upgrades.
Libraries should be put in {Sketchbook Directory}/libraries/ to survive upgrades.
Board variants should be put in {Sketchbook Directory}/hardware/ to survive upgrades.