From 27bc0ce08d7768652661a2f001f0d673d3818ef4 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Thu, 2 May 2019 03:57:02 +0200 Subject: [PATCH] add build-fork to change package path --- .gitlab-ci.yml | 1 + build-fork.sh | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 build-fork.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 794bf7eeb..6b53a6fc9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,7 @@ publish: only: - develop script: + - ./build-fork.sh # 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 diff --git a/build-fork.sh b/build-fork.sh new file mode 100755 index 000000000..18d1e39f3 --- /dev/null +++ b/build-fork.sh @@ -0,0 +1,17 @@ +#!/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"