cable-service/noise2cable.sh
2017-01-16 19:34:24 +01:00

25 lines
768 B
Bash
Executable file

#!/bin/bash
sed -i 's/co\.copperhead\.noise/im\.cable\.cableim/' build.gradle
sed -i 's/Noise/Cable/' res/layout/reminder_header.xml
find res -iname '*.xml' -exec sed -i '
s/Noise /Cable /g;
s/Noise,/Cable,/g;
s/Noise)/Cable)/g;
s/Noise!/Cable!/g;
s/Noise</Cable</g;
s/Noise\./Cable\./g;
s/Noise\\/Cable\\/g;
s/Noise:/Cable:/g;
s/Noise$/Cable/g' {} +
sed -i 's|https://textsecure-service\.whispersystems\.org|https://139\.162\.192\.233:8080|' build.gradle
# Needed to install Cable in parallel with Signal or Noise:
sed -i 's/org\.thoughtcrime\.provider\.securesms/org\.thoughtcrime\.provider\.cable_securesms/' \
AndroidManifest.xml \
src/org/thoughtcrime/securesms/providers/PartProvider.java \
src/org/thoughtcrime/securesms/providers/MmsBodyProvider.java