是否有可能对部署在Mac App Store Python应用程序? [英] Is it possible to deploy a Python application on the Mac App Store?

查看:194
本文介绍了是否有可能对部署在Mac App Store Python应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

苹果是否接受Python应用程序对新的Mac App Store的分布?

Does Apple accept Python applications for distribution on the new Mac App Store?

如果是这样,应该如何申请打包?是py2app足够了吗?别的东西吗?

If so, how should the application be packaged? Is py2app sufficient? Something else?

推荐答案

我打包的小事上精明,这可在Mac App Store中。它是基于维吉尔的moneyGuru,它使用Python,PyObjC和py2app。

I packaged Pennywise, which is available on the Mac App Store. It's based on Virgil's moneyGuru, which uses Python, PyObjC, and py2app.

您必须遵循苹果的过程preparing提交到Mac App Store的应用程序。最重要的是,你会希望正确的键添加到您的Info.plist,并删除任何自动更新机制,例如火花。它不是严格要求,但你可能也想实施收据检查。利用X code将使提交过程变得更加容易。你可以看一下对如何使用X code作为最后部分的示例,moneyGuru源$ C ​​$ C 构建过程。

You will have to follow Apple's process for preparing an application for submission to the Mac App Store. Most importantly, you will want to add the proper keys to your Info.plist, and remove any automatic updating mechanism, e.g. Sparkle. It's not strictly required, but you will probably also want to implement receipt checking. Using Xcode will make the submission process much easier. You can look at the moneyGuru source code for an example of how to use Xcode as the final part of the build process.

Py2app嵌入在捆绑了Python框架的一个副本,所以我不知道苹果是否会批准该只链接到系统架构的应用程序。而原二进制不能支持的PPC,苹果似乎不检查二进制的架构在嵌入式框架

Py2app embeds a copy of the Python framework in the bundle, so I don't know whether Apple would approve an application that only linked to the system framework. While the primary binary can't support PPC, Apple does not seem to check the architectures of binaries in embedded frameworks.

最后一个警告:我不会推荐这个过程编写新的应用程序。使用Python,PyObjC和py2app构建过程复杂严重,并介绍更多的依赖关系。

One final caveat: I wouldn't recommend this process for writing new applications. Using Python, PyObjC, and py2app seriously complicates the build process and introduces additional dependencies.

这篇关于是否有可能对部署在Mac App Store Python应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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