commit 0609589d7f59f0eac0d0e0190d2eee4d1eceadc7 Author: matt1432 Date: Sun Oct 2 20:49:49 2022 -0400 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..e3d018e --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ + + +# You can optionally specify a USERSCRIPTS_DIR volume containing these scripts: +# * begin.sh, run at the very beginning +# * before.sh, run after the syncing and patching, before starting the builds +# * pre-build.sh, run before the build of every device +# * post-build.sh, run after the build of every device +# * end.sh, run at the very end +# Each script will be run in $SRC_DIR and must be owned and writeable only by root diff --git a/before.sh b/before.sh new file mode 100755 index 0000000..54c5d65 --- /dev/null +++ b/before.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +## add lawnchair overlay to build +sed -i "1s;^;\$(call inherit-product-if-exists, vendor/lawnchair/lawnchair.mk)\n\n;" "/srv/src/LINEAGE_19_1/vendor/lineage/config/common.mk" + +## remove Trebuchet +sed -i 's/overrides.*/overrides: ["Home", "Launcher2", "Launcher3", "Launcher3QuickStep", "ParanoidQuickStep", "PixelLauncher", "TrebuchetQuickStep", "TrebuchetOverlay"],/' "/srv/src/LINEAGE_19_1/vendor/lawnchair/Android.bp" + +## remove F-Droid +echo "PRODUCT_PACKAGES += \\ + AuroraServices \\ + AuroraStore" | tee "/srv/src/LINEAGE_19_1/vendor/partner_gms/products/gms_aurora.mk" + +rm "/srv/src/LINEAGE_19_1/vendor/partner_gms/products/gms_fdroid.mk" \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..fae022d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,58 @@ +version: '3' +networks: + default: + name: pc + external: true + +services: +# ---------------------------------------------------------- + builder: + container_name: lineage_builder + image: lineageos4microg/docker-lineage-cicd + environment: + - "BRANCH_NAME=lineage-19.1" + - "DEVICE_LIST=lemonadep" + - "SIGN_BUILDS=true" + - "SIGNATURE_SPOOFING=restricted" + - "WITH_GMS=true" + - "ZIP_SUBDIR=false" + - "OTA_URL=https://ota.nelim.org/api" + - CUSTOM_PACKAGES="AndroidAuto gappsstub speechservicestub Droidify GCam GCamPhotosPreview GalleryAves" + - "INCLUDE_PROPRIETARY=false" + - "PARALLEL_JOBS=6" + - "CLEAN_AFTER_BUILD=false" + volumes: + - "${ROOT_DIR}/src:/srv/src" + - "${ROOT_DIR}/zips:/srv/zips" + - "${ROOT_DIR}/logs:/srv/logs" + - "${ROOT_DIR}/cache:/srv/ccache" + - "${ROOT_DIR}/keys:/srv/keys" + - "${ROOT_DIR}/manifests:/srv/local_manifests" + - "${ROOT_DIR}/scripts:/srv/userscripts" + - /etc/timezone:/etc/timezone + - /etc/localtime:/etc/localtime + +# ---------------------------------------------------------- + OTA-server: + container_name: lineageOTA + image: julianxhokaxhiu/lineageota + restart: always + volumes: + - "${ROOT_DIR}/zips:/var/www/html/builds/full:ro" + +# ---------------------------------------------------------- + caddy: + image: slothcroissant/caddy-cloudflaredns:latest + container_name: caddy + restart: unless-stopped + ports: + - "80:80" + - "443:443" + volumes: + - ./Caddyfile:/etc/caddy/Caddyfile + - ./caddy_data:/data + - ./caddy_config:/config + environment: + - CLOUDFLARE_EMAIL=${EMAIL} + - CLOUDFLARE_API_TOKEN=${TOKEN} + - ACME_AGREE=true diff --git a/magiskScripts/magisk.sh b/magiskScripts/magisk.sh new file mode 100644 index 0000000..222daa5 --- /dev/null +++ b/magiskScripts/magisk.sh @@ -0,0 +1,8 @@ +## prepare magisk files for rooting // TODO : automate updates +## https://github.com/topjohnwu/magisk-files +mkdir magisk +cd magisk/ +wget https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@25.2/app-release.apk +unzip app-release.apk + +## helper scripts diff --git a/manifests.xml b/manifests.xml new file mode 100644 index 0000000..f5f14b3 --- /dev/null +++ b/manifests.xml @@ -0,0 +1,10 @@ + + + + + + + + + +