Change macOS arch to “universal” in github actions #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A tiny tweak that allows building a binary that runs natively on both Apple silicon and Intel-based Macs.
file ./addons/PathMesh3D/bin/*.dylib ./addons/PathMesh3D/bin/libpath_mesh_3d.macos.template_debug.dylib: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64:Mach-O 64-bit dynamically linked shared library arm64] ./addons/PathMesh3D/bin/libpath_mesh_3d.macos.template_debug.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64 ./addons/PathMesh3D/bin/libpath_mesh_3d.macos.template_debug.dylib (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64 ./addons/PathMesh3D/bin/libpath_mesh_3d.macos.template_release.dylib: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64:Mach-O 64-bit dynamically linked shared library arm64] ./addons/PathMesh3D/bin/libpath_mesh_3d.macos.template_release.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64 ./addons/PathMesh3D/bin/libpath_mesh_3d.macos.template_release.dylib (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64Here is a link to a manually triggered build to prove that it properly works: https://github.com/evgenykochetkov/PathMesh3D/actions/runs/20071087951/job/57573746112#step:7:9
Also, you may need to point the users to this page: https://docs.godotengine.org/en/stable/tutorials/export/running_on_macos.html#app-is-not-signed-executable-is-linker-signed
Basically, to get rid of this error

the user may need to run
xattr -dr com.apple.quarantine ./addons/PathMesh3D/bin/*.dylibfrom the project root.