If you want to package for OSX, you should either
Create a Brew Tap
This probably makes the most sense for an open source developer
General Instructions https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap
- host your code in git (does not need to be GitHub)
- create a Formula (Formula Cookbook)
- fork homebrew-core on GitHub
- add your Formula and create a pull request to get it into the main repo
- support your pull request such that it is completed
Join the Apple Developer Program
This probably makes the most sense for a closed source developer
Overview: https://developer.apple.com/programs/how-it-works/
This program costs 99USD annually, but will allow you to sign your finalpackage/final binary and distribute it yourself or on their App Store
After creating your account, here's a guide for packaging and signing for OSX https://developer.apple.com/forums/thread/128166
- structure your code to support signing (add a build step to copy your work into a clean path to avoid frustrating rework)
% codesign -s <Developer ID Application signing identity> /path/to/code- pick a storage format (
.zip,.dmg,.pkg) and bundle your application as it