BlueWallet/scripts/maccatalystpatches/applypatchesformaccatalyst.sh
Marcos Rodriguez Vélez a78a34c1a9 FIX: Remove existing release notes when applying Catalyst patches.
Builds would get release notes from old commits rather than the latest ones
2021-07-28 16:37:15 -04:00

15 lines
810 B
Bash
Executable file

echo "Removing existing release notes"
rm release-notes.txt release-notes.json
echo "Applying patch for package.json"
sed -i '' '/react-native-tor/d' ./package.json
rm -fr node_modules
echo "Re-installing node_modules"
npm i
echo "Applying patch for react-native-xcode.sh"
sed -i '' 's/--platform "$BUNDLE_PLATFORM"/--platform "ios"/g' ./node_modules/react-native/scripts/react-native-xcode.sh
echo "Applying patch for RCTCameraManager.m"
patch node_modules/react-native-camera/ios/RCT/RCTCameraManager.m scripts/maccatalystpatches/RCTCameraManagerDiff
echo "Deleting torrific.js content"
echo > blue_modules/torrific.js
echo ""
echo "NOTE: react-native-tor is not currently compatible with Mac Catalyst. If you are running macOS Catalina, you will need to remove the iOS 14 Widgets from the project targets."