[android] Use default icons instead of failing
This commit is contained in:
parent
905ab3422f
commit
d3eb1329a0
1 changed files with 6 additions and 1 deletions
|
@ -12,9 +12,14 @@ cat countries_to_generate.txt | while read country; do
|
|||
toCopy=(drawable-ldpi drawable-mdpi drawable-hdpi \
|
||||
drawable-xhdpi drawable-xxhdpi)
|
||||
|
||||
COUNTRY_RES_DIR="../../android/icons/$country"
|
||||
if [ ! -d "$COUNTRY_RES_DIR" ]; then
|
||||
COUNTRY_RES_DIR="../../android/icons/default"
|
||||
echo "ERROR: Icons are missing for $country - default icons are used"
|
||||
fi
|
||||
for resDir in ${toCopy[*]}
|
||||
do
|
||||
cp -f ../../android/icons/$country/$resDir/* ../../android/res/$resDir
|
||||
cp -f $COUNTRY_RES_DIR/$resDir/* ../../android/res/$resDir
|
||||
echo "Copied $resDir for $country"
|
||||
done
|
||||
|
||||
|
|
Reference in a new issue