Changeset View
Changeset View
Standalone View
Standalone View
postinstall.sh
#!/usr/bin/env bash | #!/usr/bin/env bash | ||||
set -Eeuo pipefail | set -Eeuo pipefail | ||||
# Skip Windows | # Skip Windows | ||||
if [[ "$OSTYPE" == "msys" ]]; then | if [[ "$OSTYPE" == "msys" ]]; then | ||||
exit 0 | exit 0 | ||||
fi | fi | ||||
echo '{"name": "olm", "version": "3.2.4"}' > ./node_modules/olm/package.json | echo '{"name": "olm", "version": "3.2.4"}' > ./node_modules/olm/package.json | ||||
yarn patch-package | yarn patch-package | ||||
yarn flow-mono create-symlinks native | yarn flow-mono create-symlinks native | ||||
yarn workspace native jetify | yarn workspace native jetify | ||||
if [[ "$OSTYPE" == "darwin"* ]]; then | if [[ "$OSTYPE" == "darwin"* ]]; then | ||||
(cd native/ios && PATH=/usr/bin:/bin:"$PATH" pod install) | (cd native/ios && PATH=/usr/bin:/bin:"$PATH" pod install --repo-update) | ||||
fi | fi |