|
@@ -113,10 +113,14 @@ function android_update_apps {
|
113
|
113
|
echo " \"name\": \"${app_name}\",";
|
114
|
114
|
echo " \"platforms\": ["; } >> "$plinth_api"
|
115
|
115
|
fi
|
|
116
|
+ store_name='f-droid'
|
|
117
|
+ if [[ "$MOBILE_APP_URL" == *'google'* ]]; then
|
|
118
|
+ store_name='google-play'
|
|
119
|
+ fi
|
116
|
120
|
{ echo ' {';
|
117
|
121
|
echo ' "type": "store",';
|
118
|
122
|
echo ' "os": "android",';
|
119
|
|
- echo ' "store_name": "f-droid",';
|
|
123
|
+ echo " \"store_name\": \"$store_name\",";
|
120
|
124
|
echo " \"url\": \"$MOBILE_APP_URL\"";
|
121
|
125
|
echo ' }'; } >> "$plinth_api"
|
122
|
126
|
else
|