That script is for the official builds, and makes the Linux, the Windows and the Mac versions. It need remote access to a Mac to work, and must run on Linux, and needs some special setup. Not easy to use on your own system.
However, the script contains all the steps needed to make a build, so maybe it can be a help for making a Linux-only or a Mac-only script.