Skip to content

Commit 9f6e8be

Browse files
committed
Fix archive name when signing package
1 parent 5712974 commit 9f6e8be

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,13 @@ jobs:
240240
# Remove original unsigned package
241241
rm -f *.tar.gz
242242
243-
# Get project version from CMakeLists.txt
244-
VERSION=$(grep 'VERSION [0-9]' ../CMakeLists.txt | head -1 | sed 's/.*VERSION \([0-9.]*\).*/\1/')
245-
echo "Detected version: $VERSION"
243+
# Get project version from CMakeLists.txt (match the project() block, not cmake_minimum_required)
244+
VERSION=$(grep -A1 'project(MCCOutlet' ../CMakeLists.txt | grep VERSION | sed 's/.*VERSION \([0-9.]*\).*/\1/')
245+
ARCH=$(uname -m)
246+
echo "Detected version: $VERSION, arch: $ARCH"
246247
247-
# Create signed package (universal binary)
248-
tar -cvzf "MCCOutlet-${VERSION}-macOS_universal-signed.tar.gz" \
248+
# Create signed package
249+
tar -cvzf "MCCOutlet-${VERSION}-macOS_${ARCH}-signed.tar.gz" \
249250
MCCOutlet.app MCCOutletCLI Frameworks
250251
251252
echo "Created package:"

0 commit comments

Comments
 (0)