Initial commit

This commit is contained in:
matt1432 2022-10-02 20:49:49 -04:00
commit 0609589d7f
5 changed files with 99 additions and 0 deletions

9
README.md Normal file
View file

@ -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

14
before.sh Executable file
View file

@ -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"

58
docker-compose.yml Normal file
View file

@ -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

8
magiskScripts/magisk.sh Normal file
View file

@ -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

10
manifests.xml Normal file
View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="gitea" fetch="https://git.nelim.org/" />
<project path="vendor/partner_gms" name="danielk43/android_vendor_partner_gms" remote="github" revision="main" />
<project name="LineageExtended/android_vendor_lawnchair" path="vendor/lawnchair" />
<project name="JQuilty/android-auto-stub" path="prebuilts/androidauto" remote="github" revision="main" />
<project name="TheMuppets/proprietary_vendor_oneplus" path="vendor/oneplus" />
<project name="matt1432/alt_prebuilts" path="prebuilts/alternatives" remote="gitea" revision="main" />
</manifest>