Refine app path search in main.yml workflow

Updated app location search logic in workflow.
This commit is contained in:
Savsis 2026-04-27 22:14:09 +05:00 • committed by GitHub
parent 024f6f6455
commit 21427db884

View file

@ -51,12 +51,16 @@ jobs:
CODE_SIGNING_ALLOWED=NO \
ENABLE_BITCODE=NO
- 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"
- name: Package IPA
run: |
APP_PATH=$(find "$RUNNER_TEMP/DerivedData/Build/Products" -name "*.app" -type d | grep -v "\.xctest" | grep -v "simulator" | head -1)
if [ -z "$APP_PATH" ]; then
APP_PATH=$(find "$RUNNER_TEMP/DerivedData" -name "*.app" -type d | grep -v "\.xctest" | grep -v "simulator" | head -1)
fi
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)
echo "APP_PATH: $APP_PATH"
mkdir -p Payload
cp -r "$APP_PATH" Payload/