【问题标题】:App-bundle created with pyinstaller requires chmod a+x before it can run on other systems使用 pyinstaller 创建的 App-bundle 需要 chmod a+x 才能在其他系统上运行
【发布时间】:2013-01-10 22:51:51
【问题描述】:

我在 python 中制作了一个跨平台应用程序,带有 pyqt gui。

然后我成功地使用 pyinstallers 创建了一个应用程序包,但我遇到了一个问题。

当我在另一台电脑上使用 app bundle 时,我必须进去运行

chmod a+x [myapp].app/Content/MacOS/mybinary

让它运行。

我做错了吗?有解决办法吗?

【问题讨论】:

  • 您是否以 root 身份创建应用程序?
  • 否,对其他电脑的权限有影响吗?
  • 我相信有,看看--manifest选项,看看这个link是否有帮助
  • 使用 -m FILE 选项运行 Makespec.py 解决了这个问题,谢谢@X.Jacobs

标签: python pyqt pyinstaller


【解决方案1】:

按照 X.Jacobs 的建议,使用 -m FILE 选项运行 Makespec.py 解决了这个问题。

【讨论】:

    猜你喜欢
    • 2018-06-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-09
    • 2020-11-06
    • 1970-01-01
    • 1970-01-01
    • 2021-09-06
    相关资源
    最近更新 更多