build resources and package