2021-07-28 22:37:15 +02:00
|
|
|
echo "Removing existing release notes"
|
|
|
|
rm release-notes.txt release-notes.json
|
2020-11-16 03:31:30 +01:00
|
|
|
echo "Applying patch for package.json"
|
2021-07-09 06:03:46 +02:00
|
|
|
sed -i '' '/react-native-tor/d' ./package.json
|
2023-04-24 19:25:06 +02:00
|
|
|
sed -i '' '/rn-ldk/d' ./package.json
|
2023-04-24 19:30:15 +02:00
|
|
|
sed -i '' 's/"patches": "patch -p1 < scripts\/react-native-tor.patch; patch -p1 < scripts\/rn-ldk.patch",/"patches":/g' ./package.json
|
2021-07-18 18:34:03 +02:00
|
|
|
rm -fr node_modules
|
2020-11-15 06:54:57 +01:00
|
|
|
echo "Re-installing node_modules"
|
2020-11-15 06:45:50 +01:00
|
|
|
npm i
|
2021-09-16 02:38:13 +02: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 19:25:06 +02: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-16 02:38:13 +02:00
|
|
|
echo "Updating Podfile"
|
|
|
|
cd ios && pod update && cd ..
|
2020-11-16 03:31:30 +01:00
|
|
|
echo ""
|
2023-04-22 21:46:58 +02:00
|
|
|
echo "NOTE: react-native-tor and rn-dlk are not currently compatible with Mac Catalyst.
|