这就是我想要的:
给定一组定义(最好在 Python 中)关于安装哪些文件的位置以及运行哪些安装后脚本等。我希望这个程序为三个主要平台生成安装程序:
- Windows 上的 MSI
- MacOSX 上的 dmg
- Linux 上带有 install.sh(和 rpm/deb,如果可能的话)的压缩包
例如,
安装配置.py:
name = 'Foo'
version = '1.0'
components = {
'core': {'recursive-include': 'image/'
'target_dir': '$APPDIR'}
'plugins': {'recursive-include': 'contrib/plugins',
'target_dir': '$APPDIR/plugins'}
}
def post_install():
...
我希望这个程序生成 Foo-1.0.x86.msi、Foo-1.0.universal.dmg 和 Foo-1.0-linux-x86.tar.gz。
你明白了。有这样的程序吗?(它可以在底层使用 Windows 上的 WiX)。
注 1:Foo
可以是用任何编程语言编写的应用程序。那应该没关系。
注意 2:特定于平台的事情应该是可能的。例如,我应该能够在 Windows 上指定合并模块。