How to package version Mac osx for Submit My App to the App Store

When I package version macosx ,that file is .app it con not to submit to appstore . Have any way to export or convert that file .dmg ?