Update main.yml

This commit is contained in:
Savsis 2026-05-05 23:10:37 +05:00 • committed by GitHub
parent 27c8fd5d52
commit 38f03a2c7f

View file

@ -21,9 +21,10 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
npm install --legacy-peer-deps --ignore-scripts npm install --legacy-peer-deps --ignore-scripts
npm install react-native-svg --legacy-peer-deps --ignore-scripts # Удаляем пакет, который валит билд
npm uninstall expo-updates --legacy-peer-deps
- name: Restore app.json - name: Prepare app.json
run: | run: |
cat << 'EOF' > app.json cat << 'EOF' > app.json
{ {
@ -48,7 +49,7 @@ jobs:
} }
EOF EOF
- name: Patch Native Plugins - name: Patch Track Player
run: | run: |
TARGET_DIR="node_modules/react-native-track-player/lib/src" TARGET_DIR="node_modules/react-native-track-player/lib/src"
if [ -d "$TARGET_DIR" ]; then if [ -d "$TARGET_DIR" ]; then
@ -91,7 +92,6 @@ jobs:
CODE_SIGNING_ALLOWED=NO \ CODE_SIGNING_ALLOWED=NO \
CODE_SIGN_IDENTITY="" \ CODE_SIGN_IDENTITY="" \
ENABLE_BITCODE=NO \ ENABLE_BITCODE=NO \
OTHER_LDFLAGS='$(inherited) -framework "QuartzCore" -framework "CoreAudio"' \
| xcpretty | xcpretty
- name: Package IPA - name: Package IPA
@ -100,12 +100,16 @@ jobs:
if [ -z "$APP_PATH" ]; then if [ -z "$APP_PATH" ]; then
APP_PATH=$(find "$RUNNER_TEMP/DerivedData" -name "*.app" -type d | grep -v "xctest" | head -1) APP_PATH=$(find "$RUNNER_TEMP/DerivedData" -name "*.app" -type d | grep -v "xctest" | head -1)
fi fi
if [ -z "$APP_PATH" ]; then
echo "Build failed: .app file not found"
exit 1
fi
mkdir -p Payload mkdir -p Payload
cp -r "$APP_PATH" Payload/ cp -r "$APP_PATH" Payload/
zip -qr burmalda_full.ipa Payload zip -qr burmalda_fixed.ipa Payload
- name: Upload IPA - name: Upload IPA
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Burmalda-Full-IPA name: Burmalda-Fixed-IPA
path: burmalda_full.ipa path: burmalda_fixed.ipa