Skip to content

Instantly share code, notes, and snippets.

@dicer
Last active August 2, 2020 20:00
Show Gist options
  • Save dicer/3543ef27cbee845c0cbba9cf3f15242a to your computer and use it in GitHub Desktop.
Save dicer/3543ef27cbee845c0cbba9cf3f15242a to your computer and use it in GitHub Desktop.
Lineage MicroG Build for Pro1
docker build this image https://github.com/lineageos4microg/docker-lineage-cicd
create a folder somewhere where all your lineageos stuff goes.
Then run the container as follows (you might need to create those other directories first):
docker run -e "SIGN_BUILDS=true" -e "SIGNATURE_SPOOFING=restricted" -e "BRANCH_NAME=lineage-16.0" -e "DEVICE_LIST=pro1" -v "/mylocaldir/repo:/srv/src" -v "/mylocaldir/zips:/srv/zips" -v "/mylocaldir/logs:/srv/logs" -v "/mylocaldir/cache:/srv/ccache" -v "/mylocaldir/local_manifests:/srv/local_manifests" -v "/mylocaldir/keys:/srv/keys" lineageos4microg
Or you can have the container add additional useful prebuild software to the image.
add local_manifests/prebuilds.xml:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="lineageos4microg/android_prebuilts_prebuiltapks" path="prebuilts/prebuiltapks" remote="github" revision="master" />
</manifest>
then:
docker run -e "SIGN_BUILDS=true" -e "SIGNATURE_SPOOFING=restricted" -e "CUSTOM_PACKAGES=GmsCore GsfProxy FakeStore com.google.android.maps.jar FDroid FDroidPrivilegedExtension" -e "BRANCH_NAME=lineage-16.0" -e "DEVICE_LIST=pro1" -v "/mylocaldir/repo:/srv/src" -v "/mylocaldir/zips:/srv/zips" -v "/mylocaldir/logs:/srv/logs" -v "/mylocaldir/cache:/srv/ccache" -v "/mylocaldir/local_manifests:/srv/local_manifests" -v "/mylocaldir/keys:/srv/keys" lineageos4microg
Be sure to backup the generated keys in the keys folder!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment