Keep platforms together
This commit is contained in:
parent
8f58083d22
commit
62e6afd6b5
|
@ -95,31 +95,30 @@ function android_update_apps {
|
|||
echo ' {';
|
||||
echo ' "type": "web",';
|
||||
echo " \"url\": \"$domain_name\"";
|
||||
echo ' }';
|
||||
echo ' ]';
|
||||
echo -n ' }'; } >> "$plinth_api"
|
||||
fi
|
||||
|
||||
if [ "$MOBILE_APP_URL" ]; then
|
||||
if [[ "$domain_name" != "0" && "$app_name" != 'matrix' ]]; then
|
||||
echo ',' >> "$plinth_api"
|
||||
fi
|
||||
else
|
||||
{ echo ' {';
|
||||
echo " \"name\": \"${app_name}\",";
|
||||
echo " \"platforms\": [";
|
||||
echo ' {';
|
||||
echo " \"platforms\": ["; } >> "$plinth_api"
|
||||
fi
|
||||
{ echo ' {';
|
||||
echo ' "type": "store",';
|
||||
echo ' "os": "android",';
|
||||
echo ' "store_name": "f-droid",';
|
||||
echo " \"url\": \"$MOBILE_APP_URL\"";
|
||||
echo ' }';
|
||||
echo ' ]';
|
||||
echo -n ' }'; } >> "$plinth_api"
|
||||
echo ' }'; } >> "$plinth_api"
|
||||
else
|
||||
echo '' >> "$plinth_api"
|
||||
fi
|
||||
|
||||
{ echo ' ]';
|
||||
echo ' }';
|
||||
echo ' ]';
|
||||
echo -n ' }'; } >> "$plinth_api"
|
||||
|
||||
android_ctr=$((android_ctr+1))
|
||||
|
|
Loading…
Reference in New Issue