Not desirable, but have the option to specify apps from play

This commit is contained in:
Bob Mottram 2018-05-25 20:09:29 +01:00
parent 9737d2cc45
commit 72830a82af
1 changed files with 5 additions and 1 deletions

View File

@ -113,10 +113,14 @@ function android_update_apps {
echo " \"name\": \"${app_name}\",";
echo " \"platforms\": ["; } >> "$plinth_api"
fi
store_name='f-droid'
if [[ "$MOBILE_APP_URL" == *'google'* ]]; then
store_name='google-play'
fi
{ echo ' {';
echo ' "type": "store",';
echo ' "os": "android",';
echo ' "store_name": "f-droid",';
echo " \"store_name\": \"$store_name\",";
echo " \"url\": \"$MOBILE_APP_URL\"";
echo ' }'; } >> "$plinth_api"
else