什么是分配的Linux二进制应用程序的最佳方法是什么? [英] What’s the best way to distribute a binary application for Linux?

查看:131
本文介绍了什么是分配的Linux二进制应用程序的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚完成移植从Windows应用程序进入Linux。

我要创建的应用程序的安装程序。

该应用程序的不可以开源=>我要分发应用程序的二进制文件(可执行文件,情侣.so文件,帮助文件和图像)。

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 => I should distribute the application's binaries (executable file, couple .so files, help files and images).

我发现了几个方法来做到这一点:

- <一个href=\"http://stackoverflow.com/questions/1279423/distributing-binary-applications-across-linux-distros\">RPM和deb包;

- <一个href=\"http://stackoverflow.com/questions/955460/how-do-linux-binary-installers-bin-sh-work\">installer在.SH文件;

- 。 Autopackage

I found several methods to do it:
- RPM and DEB packages;
- installer in .sh files;
- Autopackage.

我不喜欢第一种方法(RPM和DEB包),因为我不想十个分量不同的软件包不同的Linux发行版。

I don't like first method (RPM and DEB packages) because I don't want to mantain different packages for different Linux distros.

什么是在最好的办法可用于Linux分发二进制应用程序?

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

推荐答案

已经通过这一带的商业产品几次,我认为最好的答案是使用本机安装程序为每个支持的平台。别的生产用于最终用户不愉快的经历,并在实践中你必须测试您无论如何要支持所有的平台上,因此它不是真正维护每个包一个显著的负担。你可以创建一个二进制,可以只是工作每个平台上在那里,包括一些你从来没有听说过的想法,只是真的不工作那么好。

Having been through this a couple of times with commercial products, I think the very best answer is to use the native installer for each supported platform. Anything else produces an unpleasant experience for the end-user, and in practice you have to test on every platform you want to support anyway, so it's not really a significant burden to maintain packages for each. The idea that you can create a binary that can "just work" on every platform out there, including some you've never even heard of, just really doesn't work all that well.

我的建议是,你选择一个或两个平台最初支持(红帽和Ubuntu将是我的建议),然后让用户需求驱动的附加安装包的创建。也许,让他们知道你是愿意支持更多的平台,为包括您的时间和精力在封装测试该平台上适当的费用。如果平台被证明是非常不同的,你可能需要更多的收费持续支持。

My recommendation is that you pick a platform or two to support initially (Red Hat and Ubuntu would be my suggestions) and then let user demand drive the creation of additional installation packages. Perhaps make it known that you're willing to support additional platforms, for a modest fee that covers your time and effort in packaging and testing on that platform. If a platform proves to be very different, you may need to charge more for ongoing support.

哦,我不能过分强调虚拟机的价值这样的场景。你需要建立虚拟机为每个支持的平台,也许每个平台的多个虚拟机,以方便测试不同的配置。

Oh, and I cannot overemphasize the value of virtual machines for scenarios like this. You need to build VMs for each platform you support, and perhaps multiple VMs per platform to make it easy to test different configurations.

这篇关于什么是分配的Linux二进制应用程序的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆