1
0
Fork 0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-06-08 10:06:10 +02:00

Add configurable build.prop key

It has been changed from 'cm.updater.uri' to 'lineage.updater.uri' in
LineageOS 15.0 (https://review.lineageos.org/#/c/191274/).
This commit is contained in:
Nicola Corna 2017-10-18 17:33:30 +02:00
parent d912e4b030
commit 5552c1922a
2 changed files with 6 additions and 1 deletions

View File

@ -33,6 +33,11 @@ ENV DEVICE_LIST ''
# Release type string
ENV RELEASE_TYPE 'UNOFFICIAL'
# OTA build.prop key that will be used inside Updater/CMUpdater
# This should be set to 'cm.updater.uri. for LineageOS/Cyanogenmod <= 14.1 and
# to 'lineage.updater.uri' for LineageOS >= 15.0
ENV OTA_PROP 'cm.updater.uri'
# OTA URL that will be used inside CMUpdater
# Use this in combination with LineageOTA to make sure your device can auto-update itself from this buildbot
ENV OTA_URL ''

View File

@ -101,7 +101,7 @@ if ! [ -z "$DEVICE_LIST" ]; then
# Set a custom updater URI if a OTA URL is provided
if ! [ -z "$OTA_URL" ]; then
echo ">> [$(date)] Adding OTA URL '$OTA_URL' to build.prop"
sed -i "1s;^;PRODUCT_PROPERTY_OVERRIDES += cm.updater.uri=$OTA_URL\n\n;" vendor/cm/config/common.mk
sed -i "1s;^;PRODUCT_PROPERTY_OVERRIDES += $OTA_PROP=$OTA_URL\n\n;" vendor/cm/config/common.mk
fi
# Add custom packages to be installed