mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[android] Symlink GPlay relnotes to F-Droid
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
aaff2ac33b
commit
94e7c8b11a
3
android/app/.gitignore
vendored
3
android/app/.gitignore
vendored
@@ -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
|
||||
@@ -1 +0,0 @@
|
||||
../../fdroid/play/release-notes
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
#
|
||||
# Check AppStore/GooglePlay metadata
|
||||
# Check AppStore / GooglePlay / F-Droid metadata
|
||||
#
|
||||
|
||||
import os
|
||||
|
||||
37
tools/unix/link_gplay_relnotes.sh
Executable file
37
tools/unix/link_gplay_relnotes.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user