File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363 # ----------------------------------------------------------------
6464 - name : Create macOS Universal Binary
6565 run : |
66- # Create universal binary using lipo
67- lipo -create -output dist/mcp-cli-ent dist/mcp-cli-ent-darwin-amd64 dist/mcp-cli-ent-darwin-arm64
66+ # Install llvm to get llvm-lipo
67+ sudo apt-get update && sudo apt-get install -y llvm
68+
69+ # Ensure llvm-lipo is available
70+ if ! command -v llvm-lipo &> /dev/null; then
71+ # Try to find versioned llvm-lipo and symlink it
72+ LIPO_PATH=$(find /usr/bin -name "llvm-lipo-*" | head -n 1)
73+ if [ -n "$LIPO_PATH" ]; then
74+ sudo ln -s "$LIPO_PATH" /usr/bin/llvm-lipo
75+ else
76+ echo "Error: llvm-lipo not found"
77+ exit 1
78+ fi
79+ fi
80+
81+ # Create universal binary using llvm-lipo
82+ llvm-lipo -create -output dist/mcp-cli-ent dist/mcp-cli-ent-darwin-amd64 dist/mcp-cli-ent-darwin-arm64
6883
6984 # Verify it is universal
7085 file dist/mcp-cli-ent
You can’t perform that action at this time.
0 commit comments