File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -340,6 +340,36 @@ jobs:
340340 fi
341341 done
342342
343+ - name : Verify macOS bundle structure
344+ run : |
345+ # The auto-updater expects Contents/ at the archive root, not app.app/Contents/
346+ # Butler push on a .app directory achieves this, but let's verify the structure
347+ for dir in artifacts/*darwin*; do
348+ if [ -d "$dir" ]; then
349+ app_bundle=$(find "$dir" -maxdepth 1 -name "*.app" -type d | head -1)
350+ if [ -z "$app_bundle" ]; then
351+ echo "ERROR: No .app bundle found in $dir"
352+ exit 1
353+ fi
354+
355+ # Verify expected structure exists
356+ if [ ! -f "$app_bundle/Contents/Info.plist" ]; then
357+ echo "ERROR: Missing Contents/Info.plist in $app_bundle"
358+ exit 1
359+ fi
360+ if [ ! -d "$app_bundle/Contents/MacOS" ]; then
361+ echo "ERROR: Missing Contents/MacOS in $app_bundle"
362+ exit 1
363+ fi
364+ if [ ! -d "$app_bundle/Contents/Frameworks" ]; then
365+ echo "ERROR: Missing Contents/Frameworks in $app_bundle"
366+ exit 1
367+ fi
368+
369+ echo "OK: $app_bundle has correct bundle structure"
370+ fi
371+ done
372+
343373 - name : Deploy to itch.io
344374 env :
345375 BUTLER_API_KEY : ${{ secrets.BUTLER_API_KEY }}
You can’t perform that action at this time.
0 commit comments