Update main.yml
This commit is contained in:
parent
37c0f46875
commit
bb203afaeb
1 changed files with 12 additions and 1 deletions
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
|
|
@ -21,7 +21,6 @@ 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 expo-updates --legacy-peer-deps --ignore-scripts
|
npm install react-native-svg expo-updates --legacy-peer-deps --ignore-scripts
|
||||||
|
|
||||||
- name: Prepare app.json
|
- name: Prepare app.json
|
||||||
|
|
@ -55,6 +54,18 @@ jobs:
|
||||||
};
|
};
|
||||||
EOF
|
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(/<Text[^>]*>\{fmt\(progress\)\}<\/Text>\s*<Text[^>]*>\{fmt\(duration\)\}<\/Text>/, m => '<>' + m + '</>');
|
||||||
|
fs.writeFileSync(p, c, 'utf8');
|
||||||
|
}
|
||||||
|
"
|
||||||
|
|
||||||
- name: Expo prebuild
|
- name: Expo prebuild
|
||||||
run: npx expo prebuild --platform ios --clean --no-install
|
run: npx expo prebuild --platform ios --clean --no-install
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue