为Linux应用程序创建安装程序 [英] Creating an installer for Linux application

查看:82
本文介绍了为Linux应用程序创建安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个小型的跨平台应用程序,我需要一些有关如何在Linux中安装它的建议.我在Windows中使用InnoSetup,在OSX中使用应用程序捆绑,但是我不知道如何在Linux中安装我的应用,Linux是否有任何开源安装程序创建者?

I'm developing a small cross-platform application and I need some advice on how to install it in Linux. I am using InnoSetup in Windows and an application bundle in OSX but I have no idea how to get my app installed in Linux, are there any opensource installer creators for Linux?

谢谢.

推荐答案

* emx系统上(并非唯一)所有 standard 功能强大的通用安装程序是

The standard all mighty universally available installer on *nix systems (and not only) is Autotools.

# the user will install like so:
./configure --with-stuff
make # if package is from source
make install

您还可以在RedHat或CentOS或 RPM . ="http://en.wikipedia.org/wiki/Deb_%28file_format%29" rel ="noreferrer"> deb 对于Debian,Ubuntu,尽管一旦您使Makefile被Autotools分割,使它们成为微风.

You can also provide distribution specific installers like a RPM on RedHat or CentOS or deb for Debian, Ubuntu, although once you have the Makefile spitted by Autotools, making these is a breeze.

# 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宏系统&公司但是 nota bene 这是大多数人这样做的方式,一旦掌握了它,这很容易.

Autotools also known as "the GNU build system" is a little scary on the first sight, and the new user is puzzled when meeting things like the ancient m4 macro system & co. but nota bene this is the way most people do it and is pretty easy once you get the hang of it.

学习资源

这篇关于为Linux应用程序创建安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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