From d3822bc6720c290c7d6412bd6e6d033ef49b85f4 Mon Sep 17 00:00:00 2001 From: ewen Date: Thu, 15 Jan 2026 23:52:38 +0100 Subject: [PATCH] Debug: Full diagnostic of build outputs --- .github/workflows/build-release.yml | 129 +++------------------------- 1 file changed, 14 insertions(+), 115 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 2d313c2..af9b3ad 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -33,119 +33,18 @@ jobs: -destination 'platform=macOS' \ clean build - - name: Verify build output + - name: Debug - List all build outputs run: | - echo "🔍 Contenu de ./build/Build/Products/Release/ :" - ls -la ./build/Build/Products/Release/ - - - name: Create App Bundle - run: | - echo "📩 CrĂ©ation du bundle .app..." - - # Trouve l'exĂ©cutable compilĂ© - EXECUTABLE_PATH=$(find ./build/Build/Products/Release -name "iDither" -type f -perm +111 | head -n 1) - - if [ -z "$EXECUTABLE_PATH" ]; then - echo "❌ ExĂ©cutable non trouvĂ©" - echo "🔍 Contenu de Release:" - ls -la ./build/Build/Products/Release/ - exit 1 - fi - - echo "✅ ExĂ©cutable trouvĂ© : $EXECUTABLE_PATH" - - # CrĂ©e la structure du bundle .app - APP_DIR="./iDither.app" - mkdir -p "$APP_DIR/Contents/MacOS" - mkdir -p "$APP_DIR/Contents/Resources" - - # Copie l'exĂ©cutable - cp "$EXECUTABLE_PATH" "$APP_DIR/Contents/MacOS/iDither" - chmod +x "$APP_DIR/Contents/MacOS/iDither" - - # Copie les ressources (bundle SPM) - if [ -d "./build/Build/Products/Release/iDither_iDither.bundle" ]; then - cp -R "./build/Build/Products/Release/iDither_iDither.bundle" "$APP_DIR/Contents/Resources/" - echo "✅ Bundle de ressources copiĂ©" - fi - - # CrĂ©e Info.plist - cat > "$APP_DIR/Contents/Info.plist" << EOF - - - - - CFBundleExecutable - iDither - CFBundleIdentifier - com.ewengadonnaud.iDither - CFBundleName - iDither - CFBundlePackageType - APPL - CFBundleShortVersionString - ${{ github.ref_name }} - CFBundleVersion - 1 - LSMinimumSystemVersion - 14.0 - NSHighResolutionCapable - - - - EOF - - echo "✅ Bundle .app créé : $APP_DIR" - ls -la "$APP_DIR/Contents/MacOS/" - - - name: Create DMG - run: | - APP_PATH="./iDither.app" - - if [ ! -d "$APP_PATH" ]; then - echo "❌ Bundle .app non trouvĂ©" - exit 1 - fi - - echo "✅ CrĂ©ation du DMG depuis : $APP_PATH" - - # CrĂ©e un dossier temporaire pour le DMG - mkdir -p dmg_content - cp -R "$APP_PATH" dmg_content/ - - # Ajoute un lien vers /Applications - ln -s /Applications dmg_content/Applications - - # CrĂ©e le DMG - hdiutil create -volname "iDither" \ - -srcfolder dmg_content \ - -ov -format UDZO \ - "iDither-${{ github.ref_name }}.dmg" - - echo "✅ DMG créé :" - ls -lh iDither-*.dmg - - - name: Create Release - uses: softprops/action-gh-release@v1 - with: - files: iDither-*.dmg - draft: false - prerelease: ${{ startsWith(github.ref, 'refs/tags/v0.') }} - body: | - ## iDither ${{ github.ref_name }} - - Application macOS de dithering en temps rĂ©el. - - ### Installation - 1. TĂ©lĂ©chargez le fichier `.dmg` - 2. Ouvrez-le et glissez iDither vers Applications - 3. Au premier lancement, faites clic droit → Ouvrir (sĂ©curitĂ© macOS) - - ### Changements - Build automatique via GitHub Actions - - --- - **Plateforme :** macOS 14.0+ - **Architecture :** Apple Silicon (M1/M2/M3) & Intel - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + echo "🔍 === DIAGNOSTIC COMPLET ===" + echo "" + echo "📁 Contenu de ./build/Build/Products/Release/ :" + ls -laR ./build/Build/Products/Release/ + echo "" + echo "🔍 Recherche de tous les .app :" + find ./build -name "*.app" -type d + echo "" + echo "🔍 Recherche de tous les exĂ©cutables :" + find ./build -type f -perm +111 -name "iDither" + echo "" + echo "🔍 Recherche de tous les fichiers :" + find ./build/Build/Products/Release/ -type f \ No newline at end of file