跨平台安装程序 [英] Cross Platform Installer

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

问题描述

我们针对Mac,Windows和Linux的C ++ / QT桌面应用程序需要安装程序。我希望我们为所有三个平台安装一个安装程序。我确实知道这有点棘手,我想我想问的是是否已经有针对该框架的框架(也许是Java?)。



我真的想避免不得不编写三个不同的安装程序。

解决方案

Kyle提到的链接非常全面,但是我想提供更多内容有关 Qt的InstallBuilder 的信息(免责声明,我是开发人员之一),因为大多数跨平台安装程序都已引用有基于Java的。这需要捆绑JRE等,并增加了诸如Qt这样的基于Qt的安装程序所不需要的大量开销。它能够从单个项目文件以及诸如DEB和RPM之类的本地软件包为所有平台生成类似向导的可执行安装程序。如果以DVD形式交付软件,则可以创建单个多平台DVD,该DVD跨平台共享数据,但仍具有本机启动器。是面向桌面的,对于OS X的特殊情况,如果不需要复杂的安装,则最好创建.app文件并将其打包在DMG中。然后,用户可以将文件直接拖到Applications文件夹中。



最后,我想提一下InstallBuilder是商业版本,但我们为开源项目提供免费许可证,并为您提供折扣小型开发公司。


Our C++/QT desktop application for Mac, Windows and Linux needs an installer. I'd rather we have a single installer for all three platforms. I do know it's a bit tricky, I guess what I wanted ask is if a framework already exists for that (Java maybe?).

I'd really like to avoid having to write three different installers.

解决方案

The link that Kyle mentions is pretty comprehensive, but I wanted to provide a bit more of information about InstallBuilder for Qt (Disclaimer, I am one of the developers) since most of the cross platform installation programs referenced there are Java-based. This requires bundling a JRE, etc. and adds a significant overhead that is not required with a Qt-based installer, like ours. It is able to generate wizard-like executable installers for all platforms from a single project file as well as native packages such as DEB and RPM. If you ship your software in DVDs, you can create a single multi-platform DVD that shares data across platforms but still have native launchers.

Having said this, since your application is Desktop-oriented, for the particular case of OS X if it does not require complex installation you may be better off creating a .app file and package it inside a DMG. Users can then drag the file directly to the Applications folder.

Finally, I wanted to mention that InstallBuilder is commercial, but we offer free licenses for open source projects and discounts for small development firms.

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

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