by Animats · 3y ago · 0 comments
Packaging for Linux isn't much better. There's .deb, for which you need a "repository". There are "snaps", which is Canonical's scheme for getting developers under control of their App Store. There was Flatpak, but Canonical is trying to kill that off. There's AppImage, but the code to build those hasn't been updated in two years. There's always .zip files.
Not sure how to package for MacOS yet.
Instead, use the portable apps model (https://portableapps.com/) , where you have a single binary that runs, and can be deployed by a simple copy/extract. Ditto with uninstallation.
This is what MacOS has, so that's why mac software is just a bundle inside a directory (that ends in `.app`).
https://nsis.sourceforge.io/Main_Page
From the features page:
"The NSIS compiler can be compiled for POSIX platforms like Linux and *BSD. Generated installer will still run on Windows only, but this way they can be generated without Windows or WINE."
That generates an executable installer, not a .msi file or its more recent successor. But the installers will run on Windows 95!
Does anyone still use AppImage, or is it dying out?
If you're worried, you can also just, do both. A packaging overhead of 2 is still better than maintaining your own distro- and version-specific packages, unless you submit it to the distros yourself or get others to package it for you.
At the end of the day, they're glorified zip files, not much different to self-extracting .exe files, and you'll have to figure out what libraries your application needs to run on various distros. Some bundlers attempt to do this for you but they're not infallible, so be prepared to test in different VMs.
I just discovered that the hard way.[1]
[1] https://users.rust-lang.org/t/packaging-a-rust-application-f...