airr
New Member
Posts: 47
|
Post by airr on Jul 12, 2021 8:04:05 GMT 1
Hi, All, I know it's been a while since I posted. Just wanted to share a quick script I threw together to create a macOS Universal binary (For M1 and Intel Macs): #!/bin/zsh
if [ -z $1 ];then echo "Missing Filename" exit 1 else source=${1:t:r}
# ARM (M1) build bacon -l "-target arm64-apple-macos11" -o "-target arm64-apple-macos11" $source mv $source $source.arm64
# X64 build bacon -l "-target x86_64-apple-macos10.12" -o "-target x86_64-apple-macos10.12" $source mv $source $source.x64
# Create Universal Binary lipo -create -output $source $source.x64 $source.arm64
# Remove intermediate ARM64/X64 binaries rm $source.x64 $source.arm64 fi
Hope this helps any Mac users out there....
AIR.
|
|