Update app locating and packaging steps in workflow
This commit is contained in:
parent
21427db884
commit
2b6fc3aa6e
1 changed files with 11 additions and 5 deletions
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
|
@ -53,15 +53,21 @@ jobs:
|
||||||
|
|
||||||
- name: Locate app
|
- name: Locate app
|
||||||
run: |
|
run: |
|
||||||
echo "=== DerivedData ==="
|
echo "=== Xcode default DerivedData ==="
|
||||||
find "$RUNNER_TEMP/DerivedData" -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" || echo "nothing in DerivedData"
|
find ~/Library/Developer/Xcode/DerivedData -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" || echo "nothing"
|
||||||
echo "=== runner work ==="
|
echo "=== RUNNER_TEMP ==="
|
||||||
find /Users/runner/work -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "node_modules" || echo "nothing in runner/work"
|
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
|
- name: Package IPA
|
||||||
run: |
|
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"
|
echo "APP_PATH: $APP_PATH"
|
||||||
|
if [ -z "$APP_PATH" ]; then echo "ERROR: .app not found"; exit 1; fi
|
||||||
mkdir -p Payload
|
mkdir -p Payload
|
||||||
cp -r "$APP_PATH" Payload/
|
cp -r "$APP_PATH" Payload/
|
||||||
zip -qr burmalda-unsigned.ipa Payload
|
zip -qr burmalda-unsigned.ipa Payload
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue