Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
184 views
in Technique[技术] by (71.8m points)

python 3.x - Mac executable not working when downloaded online

I have made a small (8 MB) program into a MAC executable (.app?)

It works great if I share it using a thumbstick, but if I try to upload it to google drive and then download it it doesn't work. By this I mean It first tells me that It is an unidentified source (this seems reasonable)

enter image description here

But then if I click "open"

It opens as a text file with junk data:

enter image description here

If I try to force it to open on the terminal, how the other program opens, it just shows the heartbeat thing that MACs do when opening a file, but never opens anything.

It is certifiably the same exact file. Same size, same name, same goobldygoop if I open both of them as text files instead of executables.

I am really confused, the only thing I can think of is the "signature" that apple uses is lost when it is compressed into a zip, but I'm probably totally off base.

The code uses python 3.7, pyinstaller, pynput, and selenium. I am using MAC OS Catalina to write and make into an EXE, then another Catalina to try to run the program.

EDIT: Clarify what doesn't work means

Please help.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I found the answer, simply zip the file from my mac and send it that way! Yay!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...