Skip to content

Commit c367c0f

Browse files
committed
wip
1 parent f25038e commit c367c0f

File tree

1 file changed

+36
-10
lines changed

1 file changed

+36
-10
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -433,15 +433,28 @@ jobs:
433433
434434
# Create DMG with version from git tag or use default
435435
VERSION=$(git describe --tags --abbrev=0 2>/dev/null | sed 's/^v//' || echo "0.1.13")
436+
echo "📌 Using version: $VERSION"
436437
./create-dmg.sh "$VERSION" "arm64" "build/Release/TablePro.app"
437438
438-
# Verify DMG was created
439-
if [ ! -f "build/Release/TablePro-${VERSION}-arm64.dmg" ]; then
440-
echo "❌ ERROR: DMG file was not created"
441-
exit 1
439+
# Verify DMG was created - check for the specific file or any arm64 DMG
440+
DMG_FILE="build/Release/TablePro-${VERSION}-arm64.dmg"
441+
if [ -f "$DMG_FILE" ]; then
442+
echo "✅ DMG installer created successfully: $DMG_FILE"
443+
else
444+
echo "⚠️ Expected DMG not found at: $DMG_FILE"
445+
echo "📂 Checking for any DMG files in build/Release/:"
446+
ls -la build/Release/*.dmg 2>/dev/null || echo " No DMG files found"
447+
448+
# Check if any arm64 DMG was created (version might differ)
449+
if ls build/Release/*-arm64.dmg 1>/dev/null 2>&1; then
450+
echo "✅ Found arm64 DMG file(s):"
451+
ls -lh build/Release/*-arm64.dmg
452+
else
453+
echo "❌ ERROR: No arm64 DMG file was created"
454+
exit 1
455+
fi
442456
fi
443457
444-
echo "✅ DMG installer created successfully"
445458
ls -lh build/Release/*.dmg
446459
447460
- name: Create ZIP archive (fallback)
@@ -654,15 +667,28 @@ jobs:
654667
655668
# Create DMG with version from git tag or use default
656669
VERSION=$(git describe --tags --abbrev=0 2>/dev/null | sed 's/^v//' || echo "0.1.13")
670+
echo "📌 Using version: $VERSION"
657671
./create-dmg.sh "$VERSION" "x86_64" "build/Release/TablePro.app"
658672
659-
# Verify DMG was created
660-
if [ ! -f "build/Release/TablePro-${VERSION}-x86_64.dmg" ]; then
661-
echo "❌ ERROR: DMG file was not created"
662-
exit 1
673+
# Verify DMG was created - check for the specific file or any x86_64 DMG
674+
DMG_FILE="build/Release/TablePro-${VERSION}-x86_64.dmg"
675+
if [ -f "$DMG_FILE" ]; then
676+
echo "✅ DMG installer created successfully: $DMG_FILE"
677+
else
678+
echo "⚠️ Expected DMG not found at: $DMG_FILE"
679+
echo "📂 Checking for any DMG files in build/Release/:"
680+
ls -la build/Release/*.dmg 2>/dev/null || echo " No DMG files found"
681+
682+
# Check if any x86_64 DMG was created (version might differ)
683+
if ls build/Release/*-x86_64.dmg 1>/dev/null 2>&1; then
684+
echo "✅ Found x86_64 DMG file(s):"
685+
ls -lh build/Release/*-x86_64.dmg
686+
else
687+
echo "❌ ERROR: No x86_64 DMG file was created"
688+
exit 1
689+
fi
663690
fi
664691
665-
echo "✅ DMG installer created successfully"
666692
ls -lh build/Release/*.dmg
667693
668694
- name: Create ZIP archive (fallback)

0 commit comments

Comments
 (0)