[CI] move build fork to ci

This commit is contained in:
Martin/Geno 2019-05-07 16:07:53 +02:00
parent 0754d6d01a
commit 35b32a2f65
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
2 changed files with 4 additions and 18 deletions

View File

@ -28,7 +28,10 @@ publish:
only:
- develop
script:
- ./build-fork.sh
- find -type d -name "siacs" -print0 | xargs --null -I{} bash -c 'x="{}"; mv "$x" "${x/siacs/sum7}" '
- find -type f -name "*.java" -exec sed -i "/eu.siacs.conversations.axolotl/! s/eu.siacs./eu.sum7./" "{}" \;
- find -type f -name "*.xml" -exec sed -i "/eu.siacs.conversations.axolotl/! s/eu.siacs./eu.sum7./" "{}" \;
- sed -i "s/eu.siacs./eu.sum7./" "proguard-rules.pro"
# workaround for bug in fdroid nightly
- sed -i "s/-debug.apk/-unsigned.apk/" /usr/lib/python3/dist-packages/fdroidserver/nightly.py
- sed -i "s/servergitmirror = 'git@' +/servergitmirror = 'gitlab@' +/" /usr/lib/python3/dist-packages/fdroidserver/nightly.py

View File

@ -1,17 +0,0 @@
#!/bin/sh
echo "rename folders"
for folder in $(find -type d -name "siacs"); do
newfolder="$(echo $folder | sed "s/siacs/sum7/")";
echo "$folder -> $newfolder"
mv "$folder" "$newfolder"
done
echo "fix packageing"
for file in $(find -type f -name "*.xml" -or -name "*.java"); do
sed -i "s/eu.siacs./eu.sum7./" "$file"
echo "$file: $?"
done
sed -i "s/eu.siacs./eu.sum7./" "proguard-rules.pro"