Right should I package it as deb, RPM, tgz, deploy, p5i, pkg, msi, msix, appx, apk, aar, ipa, ISMP or do you have any other favourite OS package format in mind?
As fun game you can try to map those package formats to their respective OSes.
I mean, for 99% of the packages in most distribs, that’s how it works. Someone makes a cool binary, someone else packages it up and submits it to their favorite distro’s package manager.
That doesn't work unless you can assume that every developer is willing to install all the dependencies of your project globally, with no control over what versions are used.
But it's not how it's developed. It's not uncommon that you need to run multiple different versions of the software you're working on, each using different versions of its dependencies.