我用pyinstaller创建的mac应用程序打开,然后立即关闭,但30秒后重新打开 [英] My mac app I made with pyinstaller opens and then closes immediately but then reopens 30 seconds later

查看:70
本文介绍了我用pyinstaller创建的mac应用程序打开,然后立即关闭,但30秒后重新打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 pyinstaller 制作了一个 macOS 应用程序...它可以工作,但是当打开应用程序时,它打开然后立即关闭,然后在 30 秒后重新打开.

I have made a macOS app using pyinstaller... It works but when opening the app, it opens then closes immediately and then reopens 30 seconds later.

要创建此应用,我键入了以下命令:

To create this app I typed this command:

pyinstaller -Fw --icon=AppIcon.icns Converter.py

这些是我的应用创建时使用的文件:

These are the files that my app was created with:

这是代码: https://github.com/TheLostProgrammer/Video_Downloader/blob/main/Video_Downloader.py

我不知道命令是否有问题,但是我不知道为什么会这样.有人可以解释发生了什么事吗?

I don't know if it is a problem with the command but I am puzzled to why this is happening. Can someone please explain what has happened?

推荐答案

因此,我在通读错误键入命令的文档后才发现.这是我使用的新命令 pyinstaller -w --icon = AppIcon.icns VideoDownloader.py .就像魅力一样.

So I found out after reading through the documentation that I typed in the command wrong. Here is the new command I used pyinstaller -w --icon=AppIcon.icns VideoDownloader.py. Works like a charm.

这篇关于我用pyinstaller创建的mac应用程序打开,然后立即关闭,但30秒后重新打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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