Cross platform installer for Qt [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this questionI'm trying to find a cross platform installer for small Qt applications.
It looks like the most popular (powerful ?) is BitRock Install Builder, but as the installer will be used in a school (I'm a teacher), I'm looking for a free/open source solution.
开发者_Python百科I'd like to generate an installer for a simple application on Windows, Mac and Linux OS.
For Windows and Unix, use InstallJammer.
For Mac OS X, use the tool that comes with Qt itself: macdeployqt. Read about it in more detail here. This application will add all the required frameworks and build a DMG out of your app in one call from the console.
If you have any resource files (like images, or XML files etc) that you want to distribute with your application, compile them into your application directly with the Qt resource system. This will make it easier to distribute your app, on all platforms.
I'd recommend NSIS. It's simple to use and it also integrates very well with CMake which would be very suitable as a build system for small applications.
For windows i suggest:
- NSIS - http://nsis.sourceforge.net
- izPack - http://izpack.org/
I guess there is no installer for all platform.
For Windows and Unix, you can use InstallJammer.
For MacOSX you need to create a dmg image. This is very simple. Read the following web page for help : http://www.wikihow.com/Make-a-DMG-File-on-a-Mac. By using apple script you can customize dmg (like an Application folder link into the dmg).
My preference for Win32 installer is NSIS.
I have successfuly used InstallJammer for Qt programs on Linux and Windows.
精彩评论