Limit search depth for .app folders and refine APP_NAME extraction in macOS build workflow

This commit is contained in:
mr. M
2025-01-23 23:55:02 +01:00
parent 5f7fcd57d2
commit a09f3ab32c

View File

@@ -104,13 +104,13 @@ jobs:
ls engine/
echo "--------------------"
cd engine/obj-x86_64-apple-darwin/dist
find . -name "*.app" -type d
find . -maxdepth 1 -name "*.app" -type d
cd ../..
- name: Find first .app folder name
run: |
cd engine/obj-x86_64-apple-darwin/dist
export APP_NAME=$(basename $(find . -name "*.app" -type d | head -n 1))
export APP_NAME=$(basename $(find . -maxdepth 1 -name "Zen *.app" -type d | head -n 1))
echo "APP_NAME=$APP_NAME" >> $GITHUB_ENV
echo "APP_NAME=$APP_NAME"