windows python 桌面应用程序的安装程序和更新程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12758088/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 15:54:48  来源:igfitidea点击:

Installer and Updater for a python desktop application

pythonwindowsnsisauto-updatepyinstaller

提问by Thomaschaaf

I am building a desktop app with python and packaging it to an exe with Pyinstaller. I would like to ship my application with an installer and also provide automatic and silent updates to the software like Google Chrome, Dropbox or Github for Windows does.

我正在用 python 构建一个桌面应用程序,并用 Pyinstaller 将它打包到一个 exe 文件中。我想随安装程序一起发布我的应用程序,并为 Google Chrome、Dropbox 或 Github for Windows 等软件提供自动和静默更新。

I have found the following software to be able to do this:

我发现以下软件可以做到这一点:

I am trying to find the easiest solution to my problem.

我正在努力为我的问题找到最简单的解决方案。

采纳答案by Ngure Nyaga

There is a suite of tools from the cloudmatrix guys that addresses that problem.

有一套来自 cloudmatrix 人员的工具可以解决这个问题。

eskyis an auto-update framework for frozen apps that is compatible with the common python "packaging" frameworks. signedimptries to ensure that apps are not modified after they are signed, and to minimize invasive Windows UAC dialogs. myppyaims to insulate you from base library incompatibility issues on Linux eg installing on distributions with different gcc and libc versions. The whole set can be seen on github here.

esky是一个用于冻结应用程序的自动更新框架,与常见的 Python “打包”框架兼容。signimp尝试确保应用程序在签名后不会被修改,并尽量减少侵入性的 Windows UAC 对话框。myppy旨在使您免受 Linux 上基本库不兼容问题的影响,例如在具有不同 gcc 和 libc 版本的发行版上安装。整套可以在github上可以看出这里

The video and slides from this year's PyCon are here: http://lanyrd.com/2012/pycon/spckh/

今年 PyCon 的视频和幻灯片在这里:http: //lanyrd.com/2012/pycon/spckh/

回答by Ngure Nyaga

WiX(Windows Installer XML toolset) is an open source project for an MSI authoring tool.
Part of the project is ClickThrough, a set of add-on tools, including a tool to automatically detect available updates (via an RSS feed), notify users and install the update.
As you can read here:

WiX(Windows Installer XML 工具集)是 MSI 创作工具的开源项目。
该项目的一部分是ClickThrough,这是一组附加工具,包括自动检测可用更新(通过 RSS 提要)、通知用户并安装更新的工具。
正如你可以在这里阅读:

The Windows Installer Xml (WiX) toolset is composed of a compiler, a linker, a lib tool and a decompiler. It generates MSI and MSM files from XML input. It doesn't include a GUI frontend to create the project files, but there are a couple of projects that plan to fill this gap. Votive, which is part of the WiX project, is a Visual Studio extension. It allows you to create "WiX projects" that act like any other project in a VS solution. WiX was created by Rob Mensching, a Microsoft employee and former member of the MSI team, in his free time and released as open source. It is used by several teams inside Microsoft to create their setups.

Windows Installer Xml (WiX) 工具集由编译器、链接器、lib 工具和反编译器组成。它从 XML 输入生成 MSI 和 MSM 文件。它不包括用于创建项目文件的 GUI 前端,但有几个项目计划填补这一空白。Votive 是 WiX 项目的一部分,是一个 Visual Studio 扩展。它允许您创建“WiX 项目”,其作用类似于 VS 解决方案中的任何其他项目。WiX 由微软员工、MSI 团队前成员 Rob Mensching 在空闲时间创建并作为开源发布。Microsoft 内部的多个团队使用它来创建他们的设置。

See also How to create a simple MSI installer using WIX

另请参阅如何使用 WIX 创建简单的 MSI 安装程序

回答by JohnyMoSwag

I'm working on a project that you may find useful.

我正在做一个你可能会觉得有用的项目。

PyUpdater

更新程序

回答by Eric Leroy

I recommend Google Omaha. You can get managed servers for pretty cheap now days if the only thing holding you back is the server / overhead cost.

我推荐谷歌奥马哈。如果唯一阻碍您的是服务器/管理费用,您现在可以以相当便宜的价格获得托管服务器。