Files
omarchy-iso/bin/omarchy-iso-make
T

27 lines
819 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Get the latest
git pull
git submodule update --init --recursive --jobs=8
# Prepare build repo
BUILD_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
mkdir -p "$BUILD_ROOT/out"
# Run the builder
docker run --rm \
--privileged \
-v "$BUILD_ROOT/out:/out" \
-v "$BUILD_ROOT/build_iso.sh:/build_iso.sh:ro" \
-v "$BUILD_ROOT/archiso:/archiso:ro" \
-v "$BUILD_ROOT/grub-autoboot.patch:/grub-autoboot.patch:ro" \
-v "$BUILD_ROOT/efi-autoboot.patch:/efi-autoboot.patch:ro" \
-v "$BUILD_ROOT/permissions.patch:/permissions.patch:ro" \
-v "$BUILD_ROOT/aur-mirror.patch:/aur-mirror.patch:ro" \
-v "$BUILD_ROOT/check_connectivity.sh:/check_connectivity.sh:ro" \
archlinux/archlinux:latest /build_iso.sh
# Make iso accessible to all
sudo chmod 777 -R "$BUILD_ROOT/out"