Packaging a file is sort on managing compilation of file to be installed to a specifically targeted OS. In Linux .deb is a package management for all debian related distros like Ubuntu, Mint etc. Redhat have .rpm, if these file are clicked on a relevant OS, they can self install. But on a different OS you will need to recompile them and install.
Whereas compressing a file is different. Given that is the way you want to take, you will need to know how to program and use compiler engines to make your apps.