Xmake provides a powerful packaging command xmake pack and includes("@builtin/xpack") module to support generating installation packages in various formats (NSIS, Zip, Tar, Deb, Rpm, etc.).
$ xmake pack
$ xmake pack -f nsis
$ xmake pack -f zip