BlueWallet/scripts/maccatalystpatches/applypatchesformaccatalyst.sh

21 lines
1.1 KiB
Bash
Raw Normal View History

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
2023-04-24 12:25:06 -05:00
sed -i '' '/rn-ldk/d' ./package.json
2023-04-24 12:30:15 -05:00
sed -i '' 's/"patches": "patch -p1 < scripts\/react-native-tor.patch; patch -p1 < scripts\/rn-ldk.patch",/"patches":/g' ./package.json
rm -fr node_modules
2020-11-15 00:54:57 -05:00
echo "Re-installing node_modules"
npm i
2021-09-15 20:38:13 -04:00
echo "Applying patch for LDK Podfile"
sed -i '' 's/LDKFramework.xcframework/LDKFramework-maccatalyst.xcframework/g' ./node_modules/rn-ldk/rn-ldk.podspec
2023-04-24 12:25:06 -05:00
echo "Deleting torrific.js and lightning-ldk-wallet.ts content"
cp scripts/maccatalystpatches/torrific.js blue_modules/torrific.js
cp scripts/maccatalystpatches/lightning-ldk-wallet.ts class/wallets/lightning-ldk-wallet.ts
2021-09-15 20:38:13 -04:00
echo "Updating Podfile"
cd ios && pod update && cd ..
2023-04-24 20:00:09 -05:00
echo "Remove Settings.bundle from Xcode project as its only meant for iOS"
rm -rf /ios/Settings.bundle
sed -i '' '/Settings.bundle/d' ios/BlueWallet.xcodeproj/project.pbxproj
echo ""
echo "NOTE: react-native-tor and rn-dlk are not currently compatible with Mac Catalyst.