There are main two way to create zip file.
- create folder name it as your package name
- inside that create folder hirachy that your extension follow like create app->local->xyz
- Using magento admin (recomended)
you can follow this link to create it.
This is pdf file link that magento provides