diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5fb76db..6b9c942 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,6 @@ jobs: - name: Install dependencies run: | npm install --legacy-peer-deps --ignore-scripts - # Ставим потерянные либы принудительно npm install react-native-svg expo-updates --legacy-peer-deps --ignore-scripts - name: Prepare app.json @@ -55,6 +54,18 @@ jobs: }; EOF + - name: Patch Player Syntax + run: | + node -e " + const fs = require('fs'); + const p = 'components/Player.tsx'; + if (fs.existsSync(p)) { + let c = fs.readFileSync(p, 'utf8'); + c = c.replace(/]*>\{fmt\(progress\)\}<\/Text>\s*]*>\{fmt\(duration\)\}<\/Text>/, m => '<>' + m + ''); + fs.writeFileSync(p, c, 'utf8'); + } + " + - name: Expo prebuild run: npx expo prebuild --platform ios --clean --no-install