A simple script to generate OTA JSON for LineageOS-based ROMs.
git clone https://github.com/cat658011/json_ota_generator vendor/lineage/OTA
Change the ChangeToYourOwnServer in script to your download link.
Insert the following line into the vendor/lineage/build/tasks/bacon.mk
file, prior to generating the SHA256 hash:
$(hide) ./vendor/lineage/OTA/generate_ota_json.sh $(LINEAGE_TARGET_PACKAGE)
Once you've made the changes, start building your ROM. The script will display a message indicating the location of the OTA JSON file.