BlueWallet/scripts/maccatalystpatches/applypatchesformaccatalyst.sh

17 lines
748 B
Bash
Raw Normal View History

echo "Removing existing release notes"
rm release-notes.txt release-notes.json
echo "Applying patch for package.json"
2023-04-24 19:25:06 +02:00
sed -i '' '/rn-ldk/d' ./package.json
2023-12-15 16:56:41 +01:00
sed -i '' 's/"patches": "patch -p1 < scripts\/rn-ldk.patch",/"patches":/g' ./package.json
rm -fr node_modules
2020-11-15 06:54:57 +01:00
echo "Re-installing node_modules"
npm i
echo "Deleting lightning-ldk-wallet.ts content"
2023-04-24 19:25:06 +02:00
cp scripts/maccatalystpatches/lightning-ldk-wallet.ts class/wallets/lightning-ldk-wallet.ts
2021-09-16 02:38:13 +02:00
echo "Updating Podfile"
cd ios && pod update && cd ..
2023-04-25 03:00:09 +02: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 ""
2023-12-15 16:56:41 +01:00
echo "NOTE: rn-dlk is not currently compatible with Mac Catalyst."