What’s the best way to distribute a binary application for Linux?

后端 未结 10 1773
梦如初夏
梦如初夏 2020-12-13 02:02

I just finished porting an application from Windows into Linux.
I have to create an installer of the application.
The application is not open source

10条回答
  •  [愿得一人]
    2020-12-13 02:46

    You may also want to look at AppImage (https://appimage.org/). The concept is that it produces a single binary file that the user downloads, sets executable, and runs directly; no installation necessary, no dependencies to install (since the app image typically includes all the dependencies except basic stuff like glibc). This makes for a really great user experience!

    Some downsides:

    • The image may be large, since it probably includes all files/libraries/... the app depends on.
    • As the image creator, you're responsible for security updates to any of the libraries you add into your image.
    • An AppImage is great for a user-run application that's pretty isolated from anything else on the system (i.e. daemons, system configuration, etc.), but if your app relies on things like udev integration, desktop file installation, dbus registration, etc. this isn't easy, since the apps files aren't available when the app isn't running (making udev rules hard), and there is by definition no installer that gets run (making desktop file installation hard).

提交回复
热议问题