frankobjank / natac

Free & open source networked game implemented in Python, inspired by Klaus Teuber's Settlers of Catan for MacOS and Linux.
1 stars 0 forks source link

Make an x86_64 Arch Exec With Pyinstaller From M1 Machine #41

Open frankobjank opened 1 week ago

frankobjank commented 1 week ago

Use Pyinstaller to make an app that runs on x86_64 on an M1 Mac.

frankobjank commented 1 week ago

Here is the output of pyinstaller installing an app on an Intel Mac:

$ pyinstaller --onefile main.py 475 INFO: PyInstaller: 6.8.0, contrib hooks: 2024.7 475 INFO: Python: 3.10.8 494 INFO: Platform: macOS-11.7.10-x86_64-i386-64bit 495 INFO: Python environment: /Users/jacobfrank/sources/natac/.venv 496 INFO: wrote /Users/jacobfrank/sources/natac/main.spec 506 INFO: Module search paths (PYTHONPATH): ['/Library/Frameworks/Python.framework/Versions/3.10/lib/python310.zip', '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10', '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload', '/Users/jacobfrank/sources/natac/.venv/lib/python3.10/site-packages', '/Users/jacobfrank/sources/natac'] 671 INFO: checking Analysis 694 INFO: checking PYZ 712 INFO: EXE target arch: x86_64 713 INFO: Code signing identity: None 730 INFO: checking PKG 731 INFO: Building because toc changed 732 INFO: Building PKG (CArchive) main.pkg 5848 INFO: Building PKG (CArchive) main.pkg completed successfully. 5853 INFO: Bootloader /Users/jacobfrank/sources/natac/.venv/lib/python3.10/site-packages/PyInstaller/bootloader/Darwin-64bit/run 5854 INFO: checking EXE 5856 INFO: Building because name changed 5856 INFO: Building EXE from EXE-00.toc WARNING: The output directory "/Users/jacobfrank/sources/natac/dist/main" and ALL ITS CONTENTS will be REMOVED! Continue? (y/N)y On your own risk, you can use the option --noconfirm to get rid of this question. 11232 INFO: Removing dir /Users/jacobfrank/sources/natac/dist/main 11286 INFO: Copying bootloader EXE to /Users/jacobfrank/sources/natac/dist/main 11290 INFO: Converting EXE to target arch (x86_64) 11344 INFO: Removing signature(s) from EXE 11420 INFO: Appending PKG archive to EXE 11448 INFO: Fixing EXE headers for code signing 11470 INFO: Re-signing the EXE 11654 INFO: Building EXE from EXE-00.toc completed successfully.