This is true, yet some users(especially on MacOS) are afarid/oblivious of the terminal, or do not know how to use it.
On MacOS, you will have to look through the docs to find info on packaging. On Linux, you can experiment with GNU Makefiles(and our good friend ExtUtils::MakeMaker), or try using one of the package managers(such as RPM or DEB).
If you choose to do that, look for the RPM spec here, and a simple deb tutorial here.