..

Build Golang MacOS Universal Binary

When developing a micro tool xlsx2csv for converting xlsx with multiple sheets to csv in batch, my personal laptop is running on M1 Chip, but the person using this tool use Intel chip.

With some investigation, I found lipo could do the trick.

lipo -create arm64-xlsx2csv amd64-xlsx2csv -o xlsx2csv