0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 03:52:15 +02:00

Merge pull request #643 from agrueneberg/chromeos-fix-file-handler

More ChromeOS release script fixes
This commit is contained in:
Tim Rae 2014-11-21 17:09:57 +09:00
commit c0970b028a

View File

@ -31,12 +31,15 @@ for LANG in $LANGS
do
if [ -f $SOURCE_PATH/docs/marketing/localized_description/marketdescription-$LANG.txt ]
then
NAME=`cat $SOURCE_PATH/docs/marketing/localized_description/ankidroid-titles.txt | grep "^$LANG:" | sed 's/.*\: //'`
NAME=`grep "^$LANG:" $SOURCE_PATH/docs/marketing/localized_description/ankidroid-titles.txt | sed 's/.*\: //'`
DESC=`head -n 1 $SOURCE_PATH/docs/marketing/localized_description/marketdescription-$LANG.txt`
echo `jq '.appName.message = $appName | .appDesc.message = $appDesc' < cws/unpacked/_locales/$LANG/messages.json --arg appName "${NAME-AnkiDroid Flashcards}" --arg appDesc "${DESC-Memorize anything with AnkiDroid!}"` > cws/unpacked/_locales/$LANG/messages.json
echo "`jq '.appName.message = $appName | .appDesc.message = $appDesc' --arg appName "${NAME:-AnkiDroid Flashcards}" --arg appDesc "${DESC-Memorize anything with AnkiDroid!}" cws/unpacked/_locales/$LANG/messages.json`" > cws/unpacked/_locales/$LANG/messages.json
fi
done
# Work around intent filter restriction to support APKG file handler
echo "`jq 'del(.file_handlers.any.types) | .file_handlers.any.extensions = ["apkg"]' cws/unpacked/manifest.json`" > cws/unpacked/manifest.json
# Prepare release package
cd cws/unpacked
zip -q -r -o ../../cws/release.zip *