我正在开发一个小型跨平台应用程序,我需要一些有关如何在 Linux 中安装它的建议。我在 Windows 中使用 InnoSetup,在 OSX 中使用应用程序包,但我不知道如何在 Linux 中安装我的应用程序,是否有适用于 Linux 的开源安装程序创建器?
Thanks.
The standard*nix 系统(不仅如此)上所有强大的通用安装程序都是自动工具 http://en.wikipedia.org/wiki/GNU_build_system.
# the user will install like so:
./configure --with-stuff
make # if package is from source
make install
您还可以提供特定于发行版的安装程序,例如RPM http://en.wikipedia.org/wiki/RPM_Package_Manager在 RedHat 或 CentOS 上或deb http://en.wikipedia.org/wiki/Deb_%28file_format%29对于 Debian、Ubuntu,尽管一旦你有了 Autotools 生成的 Makefile,制作这些文件就变得轻而易举了。
# the user will install like so:
yum install your-package-1.0.rpm # on redhat or
apt-get install your-package-1.0.deb # on debian
Autotools 也被称为“GNU 构建系统”,乍一看有点吓人,而新用户在遇到像古老的 m4 宏系统等这样的东西时会感到困惑。但诺塔贝内这是大多数人的做法,一旦掌握了窍门,就会很容易。
学习资源 http://www.lrde.epita.fr/~adl/autotools.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)