How to package with mime registering?