@@ -58,54 +58,57 @@ jobs:
5858
5959 - name : Verify Build
6060 run : |
61- echo "=== Build logs ==="
62- if [ -f build.log ]; then
63- echo "Last 50 lines of build log:"
64- tail -50 build.log
65- fi
66-
67- echo ""
6861 echo "=== Checking for .app bundle ==="
69- if [ -d "dist/main.app" ]; then
62+
63+ # Find the .app bundle (could be main.app or "Pixel Panel.app")
64+ APP_BUNDLE=$(find dist -name "*.app" -type d -maxdepth 1 | head -n 1)
65+
66+ if [ -n "$APP_BUNDLE" ]; then
7067 echo "✓ Build successful!"
68+ echo "Found app bundle: $APP_BUNDLE"
69+ echo ""
70+ echo "Dist directory contents:"
7171 ls -lh dist/
7272 echo ""
7373 echo "App bundle structure:"
74- ls -la dist/main.app/ Contents/
74+ ls -la "$APP_BUNDLE/ Contents/"
7575 echo ""
7676 echo "MacOS executables:"
77- ls -la dist/main.app/Contents/MacOS/
77+ ls -la "$APP_BUNDLE/Contents/MacOS/"
78+ echo ""
79+ echo "App size:"
80+ du -sh "$APP_BUNDLE"
7881 else
7982 echo "✗ Build failed - .app bundle not found"
8083 echo ""
81- echo "Current directory contents:"
82- ls -la
83- echo ""
84- echo "Dist directory contents (if exists):"
84+ echo "Dist directory contents:"
8585 ls -la dist/ || echo "No dist directory"
8686 echo ""
87- echo "Searching for any .app bundles:"
88- find . -name "*.app" -type d
89- echo ""
90- echo "Full build log:"
91- cat build.log || echo "No build log found"
87+ echo "Last 100 lines of build log:"
88+ tail -100 build.log || echo "No build log found"
9289 exit 1
9390 fi
9491
9592 - name : Create DMG (optional)
9693 run : |
94+ # Find the .app bundle
95+ APP_BUNDLE=$(find dist -name "*.app" -type d -maxdepth 1 | head -n 1)
96+ APP_NAME=$(basename "$APP_BUNDLE")
97+
98+ echo "Creating archive for: $APP_NAME"
99+
97100 # Create a simple compressed archive for distribution
98101 cd dist
99- zip -r pixel-panel-${{ env.BUILD_VERSION }}-macos.zip main.app
100- shasum -a 256 pixel-panel-${{ env.BUILD_VERSION }}-macos.zip > pixel-panel-${{ env.BUILD_VERSION }}-macos.zip.sha256
102+ zip -r " pixel-panel-${{ env.BUILD_VERSION }}-macos.zip" "$APP_NAME"
103+ shasum -a 256 " pixel-panel-${{ env.BUILD_VERSION }}-macos.zip" > " pixel-panel-${{ env.BUILD_VERSION }}-macos.zip.sha256"
101104 cd ..
102105
103106 - name : Upload macOS Artifact
104107 uses : actions/upload-artifact@v4
105108 with :
106109 name : pixel-panel-macos
107110 path : |
108- dist/main .app
111+ dist/* .app
109112 dist/*.zip
110113 dist/*.sha256
111114 if-no-files-found : error
0 commit comments