Skip to content

Commit 158e010

Browse files
committed
chore: fix binary name
1 parent d638317 commit 158e010

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/scripts/build-multi-platform-binary/build-binary.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ VERSION=${TAG_NAME#v}
77
BINARY_NAME="BinaryDependenciesManager"
88
PLATFORM=${PLATFORM:-macOS}
99
ARCH=${ARCH:-universal}
10-
ARCHIVE_NAME="BinaryDependenciesManager-${PLATFORM}-${ARCH}-${VERSION}.zip"
10+
ARCHIVE_NAME="${BINARY_NAME}-${VERSION}-${PLATFORM}-${ARCH}.zip"
1111

1212
echo "Building binary for platform: $PLATFORM, architecture: $ARCH, version: $VERSION"
1313

@@ -20,6 +20,9 @@ if [ "$PLATFORM" == "macOS" ] && [ "$ARCH" == "universal" ]; then
2020
swift build --configuration release --arch x86_64 --arch arm64
2121
cp .build/apple/Products/Release/$BINARY_NAME build/$BINARY_NAME
2222

23+
# Verify the universal binary
24+
echo "Verifying universal binary..."
25+
lipo -info build/$BINARY_NAME
2326
elif [ "$PLATFORM" == "macOS" ] && [[ "$ARCH" == "arm64" || "$ARCH" == "x86_64" ]]; then
2427

2528
# Build $ARCH binary for macOS

0 commit comments

Comments
 (0)