From 2b6fc3aa6e0a457a5cecece15097d9420eb47ef0 Mon Sep 17 00:00:00 2001 From: Savsis Date: Mon, 27 Apr 2026 22:25:05 +0500 Subject: [PATCH] Update app locating and packaging steps in workflow --- .github/workflows/main.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 459edab..d523387 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,15 +53,21 @@ jobs: - name: Locate app run: | - echo "=== DerivedData ===" - find "$RUNNER_TEMP/DerivedData" -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" || echo "nothing in DerivedData" - echo "=== runner work ===" - find /Users/runner/work -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "node_modules" || echo "nothing in runner/work" + echo "=== Xcode default DerivedData ===" + find ~/Library/Developer/Xcode/DerivedData -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" || echo "nothing" + echo "=== RUNNER_TEMP ===" + find "$RUNNER_TEMP" -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" || echo "nothing" + echo "=== runner home ===" + find /Users/runner -maxdepth 8 -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "Xcode.app" | grep -v "CoreSimulator" | grep -v "node_modules" | grep -v "Cellar" || echo "nothing" - name: Package IPA run: | - APP_PATH=$(find /Users/runner -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "node_modules" | grep -v "Xcode.app" | grep -v "CoreSimulator" | grep -v "Cellar" | head -1) + APP_PATH=$(find ~/Library/Developer/Xcode/DerivedData -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | head -1) + if [ -z "$APP_PATH" ]; then + APP_PATH=$(find /Users/runner -maxdepth 8 -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "Xcode.app" | grep -v "CoreSimulator" | grep -v "node_modules" | grep -v "Cellar" | head -1) + fi echo "APP_PATH: $APP_PATH" + if [ -z "$APP_PATH" ]; then echo "ERROR: .app not found"; exit 1; fi mkdir -p Payload cp -r "$APP_PATH" Payload/ zip -qr burmalda-unsigned.ipa Payload