mirror of
https://github.com/element-hq/element-android
synced 2024-11-23 18:05:36 +03:00
Handle missing descriptions for SQ
This commit is contained in:
parent
fcd72fd9e3
commit
2239d710db
2 changed files with 29 additions and 2 deletions
|
@ -44,6 +44,6 @@ Get version code
|
|||
|
||||
----
|
||||
|
||||
This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run.
|
||||
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
|
||||
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
|
||||
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
|
||||
|
|
|
@ -29,7 +29,8 @@ mv ./fastlane/metadata/android/ga ./fastlane_tmp
|
|||
mv ./fastlane/metadata/android/kab ./fastlane_tmp
|
||||
mv ./fastlane/metadata/android/nb ./fastlane_tmp
|
||||
|
||||
# Fastlane / PlayStore require longDescription and shortDescription file to be set, so copy the default one for
|
||||
# Fastlane / PlayStore require longDescription and shortDescription file to be set, so copy the default
|
||||
# one for languages where they are missing
|
||||
echo "Copying default description when missing"
|
||||
if [[ -f "./fastlane/metadata/android/ro/full_description.txt" ]]; then
|
||||
echo "It appears that file ./fastlane/metadata/android/ro/full_description.txt now exists. This can be removed."
|
||||
|
@ -58,6 +59,24 @@ else
|
|||
removeShortDes_si=1
|
||||
fi
|
||||
|
||||
if [[ -f "./fastlane/metadata/android/sq/short_description.txt" ]]; then
|
||||
echo "It appears that file ./fastlane/metadata/android/sq/short_description.txt now exists. This can be removed."
|
||||
removeShortDes_sq=0
|
||||
else
|
||||
echo "Copy default short description to ./fastlane/metadata/android/sq"
|
||||
cp ./fastlane/metadata/android/en-US/short_description.txt ./fastlane/metadata/android/sq
|
||||
removeShortDes_sq=1
|
||||
fi
|
||||
|
||||
if [[ -f "./fastlane/metadata/android/sq/full_description.txt" ]]; then
|
||||
echo "It appears that file ./fastlane/metadata/android/sq/full_description.txt now exists. This can be removed."
|
||||
removeFullDes_sq=0
|
||||
else
|
||||
echo "Copy default full description to ./fastlane/metadata/android/sq"
|
||||
cp ./fastlane/metadata/android/en-US/full_description.txt ./fastlane/metadata/android/sq
|
||||
removeFullDes_sq=1
|
||||
fi
|
||||
|
||||
if [[ -f "./fastlane/metadata/android/th/full_description.txt" ]]; then
|
||||
echo "It appears that file ./fastlane/metadata/android/th/full_description.txt now exists. This can be removed."
|
||||
removeFullDes_th=0
|
||||
|
@ -98,10 +117,18 @@ if [[ ${removeShortDes_si} -eq 1 ]]; then
|
|||
rm ./fastlane/metadata/android/si-LK/short_description.txt
|
||||
fi
|
||||
|
||||
if [[ ${removeShortDes_sq} -eq 1 ]]; then
|
||||
rm ./fastlane/metadata/android/sq/short_description.txt
|
||||
fi
|
||||
|
||||
if [[ ${removeFullDes_th} -eq 1 ]]; then
|
||||
rm ./fastlane/metadata/android/th/full_description.txt
|
||||
fi
|
||||
|
||||
if [[ ${removeFullDes_sq} -eq 1 ]]; then
|
||||
rm ./fastlane/metadata/android/sq/full_description.txt
|
||||
fi
|
||||
|
||||
if [[ ${removeFullDes_vi} -eq 1 ]]; then
|
||||
rm ./fastlane/metadata/android/vi/full_description.txt
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue