harbaum / upide

uPIDE is a simple IDE for Micropython
22 stars 6 forks source link

src/build_macos.sh: Fixes for universal macOS builds. #13

Closed andypiper closed 2 years ago

andypiper commented 2 years ago

Added a universal flag to the PyInstaller command, and added PyInstaller to requirements.txt

Also added a comment noting the need to install the create-dmg command which is not standard on macOS. This could be improved i.e. script could check for it and output a prettier / more useful error if the developer has not read the script 😄

Finally, note that in order for universal builds to work, it needs a universal build of Python on the build machine - Homebrew installed Python are single architecture (so on my machine, this reports a warning about the lack of universal Python, and builds me an Apple Silicon version, which is fine, but not suitable for general distribution where you would want a universal build).

TODO: add some documentation about how to run builds for each OS, this was done without instructions 😉

Fixes #12