From 68aab3b6d36c878f8dc1c98dd89c8deee719c480 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Sun, 20 Dec 2020 13:01:27 +0100 Subject: [PATCH] alternative_package.sh: Patch store description for test releases Change-Id: Ic81a5753f384c4caa6e4fff21116631c21552f65 --- alternative_package.sh | 9 +++++++++ fastlane_testing/fcm_full_description.txt | 1 + fastlane_testing/fcm_short_description.txt | 1 + fastlane_testing/foss_full_description.txt | 1 + fastlane_testing/foss_short_description.txt | 1 + 5 files changed, 13 insertions(+) create mode 100644 fastlane_testing/fcm_full_description.txt create mode 100644 fastlane_testing/fcm_short_description.txt create mode 100644 fastlane_testing/foss_full_description.txt create mode 100644 fastlane_testing/foss_short_description.txt diff --git a/alternative_package.sh b/alternative_package.sh index 6cec4db6ba..b1482aaf46 100755 --- a/alternative_package.sh +++ b/alternative_package.sh @@ -80,5 +80,14 @@ sed -i "s|SchildiChat|SchildiChat.$name_add|g" "$build_gradle" sed -i "s|de.spiritcroc.riotx|de.spiritcroc.riotx.$package_add|g" "$build_gradle" `find "$src_dir" -name google-services.json` sed -i "s|SchildiChat|SchildiChat.$name_add|g" `find "$fastlane_dir/metadata/android" -name "title.txt"` + +if [ "$package_add" = "testing.foss" ]; then + find "$fastlane_dir" -name full_description.txt -exec cp "$fastlane_dir/../fastlane_testing/foss_full_description.txt" '{}' \; + find "$fastlane_dir" -name short_description.txt -exec cp "$fastlane_dir/../fastlane_testing/foss_short_description.txt" '{}' \; +elif [ "$package_add" = "testing.fcm" ]; then + find "$fastlane_dir" -name full_description.txt -exec cp "$fastlane_dir/../fastlane_testing/fcm_full_description.txt" '{}' \; + find "$fastlane_dir" -name short_description.txt -exec cp "$fastlane_dir/../fastlane_testing/fcm_short_description.txt" '{}' \; +fi + git add -A git commit -m "Switch to alternative $name_add ($package_add)" diff --git a/fastlane_testing/fcm_full_description.txt b/fastlane_testing/fcm_full_description.txt new file mode 100644 index 0000000000..99730193e3 --- /dev/null +++ b/fastlane_testing/fcm_full_description.txt @@ -0,0 +1 @@ +SchildiChat test release, Google variant with proprietary push notifications diff --git a/fastlane_testing/fcm_short_description.txt b/fastlane_testing/fcm_short_description.txt new file mode 100644 index 0000000000..99730193e3 --- /dev/null +++ b/fastlane_testing/fcm_short_description.txt @@ -0,0 +1 @@ +SchildiChat test release, Google variant with proprietary push notifications diff --git a/fastlane_testing/foss_full_description.txt b/fastlane_testing/foss_full_description.txt new file mode 100644 index 0000000000..76ba868aa7 --- /dev/null +++ b/fastlane_testing/foss_full_description.txt @@ -0,0 +1 @@ +SchildiChat test release, F-Droid variant without proprietary push notifications diff --git a/fastlane_testing/foss_short_description.txt b/fastlane_testing/foss_short_description.txt new file mode 100644 index 0000000000..76ba868aa7 --- /dev/null +++ b/fastlane_testing/foss_short_description.txt @@ -0,0 +1 @@ +SchildiChat test release, F-Droid variant without proprietary push notifications