DivestOS/Container
2024-12-28 01:11:27 -05:00
..
build-image-docker.sh Container: Find git config at XDG_CONFIG_HOME 2024-07-26 22:02:12 +00:00
build-image-podman.sh Container: Find git config at XDG_CONFIG_HOME 2024-07-26 22:02:12 +00:00
Dockerfile 18: November 2024 ASB Picks 2024-11-13 07:54:08 -05:00
phase-1.sh Set user configurable options from environment 2024-07-30 21:17:22 -04:00
phase-2.sh Set user configurable options from environment 2024-07-30 21:17:22 -04:00
README.md Set user configurable options from environment 2024-07-30 21:17:22 -04:00
run-image-docker.sh Container: Store DivestOS directory in a volume 2024-07-26 22:02:12 +00:00
run-image-podman.sh Container: Store DivestOS directory in a volume 2024-07-26 22:02:12 +00:00

  1. Build image
./build-image-{podman,docker}.sh
  1. Run container

required arguments:

  • $1 - path where android build will end up
./run-image-{podman,docker}.sh "$(pwd)/Builds"
  1. Proceed with build

Either proceed manually (https://divestos.org/pages/build#init) or use the scripts:

a. Setup divestos-build

```sh
# $1: version
./phase-1.sh "20.0" |& tee phase-1.log
```

b. Set options (optional)

See Scripts/init.sh for available options. For example:

```sh
export DOS_BRANDING_ORG="My Company"
```

c. Add vendor blobs

```sh
githuborg=""  # <-- put the correct github organization here
sed -i "/github/s/\[COLOUR IN THE LINES\]/$githuborg/g" DivestOS/Build/LineageOS-20.0/.repo/local_manifests/local_manifest.xml
gitlaborg=""  # <-- put the correct gitlab organization here
sed -i "/gitlab/s/\[COLOUR IN THE LINES\]/$gitlaborg/g" DivestOS/Build/LineageOS-20.0/.repo/local_manifests/local_manifest.xml
```

d. Download and Build

```sh
# $1: version
# $2: device
./phase-2.sh "20.0" "sailfish" |& tee phase-2.log
```

Note: To read logs with rendered color codes, you can use `less -r phase-2.log`.
  1. Proceed with Installation

The flashable builds are now located in the build directory path you assigned above and you're ready for installation.