#!/bin/sh # ビルド # Usage: bin/build # Required: docker compose cd -- "$(dirname -- "$0")/.." set -eux version="$(bin/version)" bin/import "${version}" ghcr.io/kou029w/yama/minirootfs rm -rf dist mkdir dist bin/download "${version}" dist docker compose run --rm minirootfs sh -c 'apk update && apk add' cp -a src/bootfs/* cache -t dist bin/overlay-gen dist/overlay.img tar czf dist/localhost.apkovl.tar.gz --owner=0 --group=0 -C src/rootfs . tar czf yama-armhf.tar.gz --owner=0 --group=0 -C dist . bin/img-gen yama-armhf.img