Skip to content

Commit 5e9674e

Browse files
committed
fix(cross): search for app
1 parent 7802cf5 commit 5e9674e

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

backend/helm-chart/values-dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ image:
55
tag: "dev"
66

77
env:
8-
NODE_ENV: "dev"
8+
NODE_ENV: "prod"
99
FRONTEND_URL: "https://hankers-frontend.myaddr.tools"
1010
REDIS_HOST: "redis-master.default.svc.cluster.local"
1111
REDIS_PORT: "6379"

cross-platform/deploy.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,16 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then
6363
if [ ! -f "$IPA_PATH" ]; then
6464
echo "📦 IPA not found, creating from .app bundle..."
6565

66-
# Find the .app bundle (name might vary)
67-
APP_PATH=$(find build/ios/Release-iphoneos -name "*.app" -type d | head -n 1)
66+
# Find the .app bundle in xcarchive (prefer this) or fallback to any .app
67+
APP_PATH=$(find build/ios -path "*.xcarchive/Products/Applications/*.app" -type d | head -n 1)
68+
if [ -z "$APP_PATH" ]; then
69+
APP_PATH=$(find build/ios -name "*.app" -type d | head -n 1)
70+
fi
6871

6972
if [ -z "$APP_PATH" ] || [ ! -d "$APP_PATH" ]; then
70-
echo "❌ No .app bundle found in build/ios/Release-iphoneos/"
71-
echo "🔍 Listing contents:"
72-
ls -la build/ios/Release-iphoneos/ || echo "Directory doesn't exist"
73+
echo "❌ No .app bundle found in build/ios/"
74+
echo "🔍 Listing build/ios contents:"
75+
ls -la build/ios/ 2>/dev/null || echo "build/ios/ doesn't exist"
7376
exit 1
7477
fi
7578

0 commit comments

Comments
 (0)