diff --git a/android/app/.gitignore b/android/app/.gitignore index ceef345e9..c88eb933a 100644 --- a/android/app/.gitignore +++ b/android/app/.gitignore @@ -24,3 +24,6 @@ /src/main/res/drawable-mdpi/uk_northern_ireland.png /src/main/res/drawable-mdpi/uk_scotland.png /src/main/res/drawable-mdpi/uk_wales.png + +# Symlinked to F-Droid relnotes by tools/unix/link_gplay_relnotes.sh +/src/google/play/release-notes \ No newline at end of file diff --git a/android/app/src/google/play/release-notes b/android/app/src/google/play/release-notes deleted file mode 120000 index 4ded7b4c7..000000000 --- a/android/app/src/google/play/release-notes +++ /dev/null @@ -1 +0,0 @@ -../../fdroid/play/release-notes \ No newline at end of file diff --git a/tools/python/check_store_metadata.py b/tools/python/check_store_metadata.py index 8c3b2bf67..7afadd163 100755 --- a/tools/python/check_store_metadata.py +++ b/tools/python/check_store_metadata.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Check AppStore/GooglePlay metadata +# Check AppStore / GooglePlay / F-Droid metadata # import os diff --git a/tools/unix/link_gplay_relnotes.sh b/tools/unix/link_gplay_relnotes.sh new file mode 100755 index 000000000..dbcde7069 --- /dev/null +++ b/tools/unix/link_gplay_relnotes.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +# +# Linking relnotes from F-Droid to Google Play +# + +set -e -u + +REPO_PATH="$(cd "$(dirname "$0")/../.."; pwd -P)" +ANDROID_PATH="$REPO_PATH/android/app/src" +GPLAY_PATH="$ANDROID_PATH/google/play/release-notes" + +pushd $ANDROID_PATH >/dev/null + +echo "Deleting all GPlay relnotes symlinks in $GPLAY_PATH" +pushd $GPLAY_PATH >/dev/null +rm -rf * +popd >/dev/null + +pushd fdroid/play/listings >/dev/null + +echo "Symlinking to F-Droid relnotes in $(pwd)" + +for loc in */; do + if [ -f "$loc/release-notes.txt" ]; then + echo "Adding $loc relnotes" + pushd ../../../google/play/release-notes >/dev/null + mkdir -p $loc + cd $loc + ln -sT "../../../../fdroid/play/listings/$loc"release-notes.txt default.txt + popd >/dev/null + fi +done + +popd >/dev/null +popd >/dev/null + +exit 0