Skip to content

Commit bc02267

Browse files
mateofclaude
andcommitted
fix: collect macOS .pkg files instead of looking for .app bundles
CreatePackage=true generates .pkg installer files, not .app bundles. Updated the packaging step to find and copy .pkg files to releases. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent ad452d9 commit bc02267

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

.github/workflows/buildrelease.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -453,29 +453,34 @@ jobs:
453453
-p:CreatePackage=true \
454454
-o bin/macos-arm64
455455
456-
- name: '📦 Create macOS ZIPs'
456+
- name: '📦 Prepare macOS packages for release'
457457
run: |
458458
TAG=${{ steps.version.outputs.tag }}
459459
mkdir -p releases
460460
461-
# Package Intel (x64) version
462-
APP_X64=$(find bin/macos-x64 -name "*.app" -type d | head -1)
463-
if [ -n "$APP_X64" ]; then
464-
cd "$(dirname "$APP_X64")"
465-
zip -r "${GITHUB_WORKSPACE}/releases/TFMAudioApp-macOS-Intel-${TAG}.zip" "$(basename "$APP_X64")"
466-
cd "${GITHUB_WORKSPACE}"
467-
echo "✅ macOS Intel app packaged"
461+
echo "🔍 Looking for .pkg files..."
462+
find bin -name "*.pkg" -type f 2>/dev/null || echo "No .pkg files found"
463+
464+
# Copy Intel (x64) .pkg
465+
PKG_X64=$(find bin/macos-x64 -name "*.pkg" -type f | head -1)
466+
if [ -n "$PKG_X64" ]; then
467+
cp "$PKG_X64" "releases/TFMAudioApp-macOS-Intel-${TAG}.pkg"
468+
echo "✅ macOS Intel package ready"
469+
else
470+
echo "⚠️ No Intel .pkg found"
468471
fi
469472
470-
# Package Apple Silicon (arm64) version
471-
APP_ARM64=$(find bin/macos-arm64 -name "*.app" -type d | head -1)
472-
if [ -n "$APP_ARM64" ]; then
473-
cd "$(dirname "$APP_ARM64")"
474-
zip -r "${GITHUB_WORKSPACE}/releases/TFMAudioApp-macOS-AppleSilicon-${TAG}.zip" "$(basename "$APP_ARM64")"
475-
cd "${GITHUB_WORKSPACE}"
476-
echo "✅ macOS Apple Silicon app packaged"
473+
# Copy Apple Silicon (arm64) .pkg
474+
PKG_ARM64=$(find bin/macos-arm64 -name "*.pkg" -type f | head -1)
475+
if [ -n "$PKG_ARM64" ]; then
476+
cp "$PKG_ARM64" "releases/TFMAudioApp-macOS-AppleSilicon-${TAG}.pkg"
477+
echo "✅ macOS Apple Silicon package ready"
478+
else
479+
echo "⚠️ No Apple Silicon .pkg found"
477480
fi
478481
482+
echo ""
483+
echo "📦 Release files:"
479484
ls -la releases/
480485
481486
- name: '📤 Upload macOS artifact'

0 commit comments

Comments
 (0)