2020-07-21 01:06:43 +09:00
|
|
|
#!/bin/sh
|
|
|
|
# ビルド
|
|
|
|
# Usage: bin/build
|
2022-05-30 22:12:19 +09:00
|
|
|
# Required: docker compose
|
2020-07-21 01:06:43 +09:00
|
|
|
cd -- "$(dirname -- "$0")/.."
|
|
|
|
set -eux
|
|
|
|
version="$(bin/version)"
|
2021-07-17 13:16:56 +09:00
|
|
|
bin/import "${version}" ghcr.io/kou029w/yama/minirootfs
|
2020-07-21 01:06:43 +09:00
|
|
|
rm -rf dist
|
|
|
|
mkdir dist
|
|
|
|
bin/download "${version}" dist
|
2022-05-30 22:12:19 +09:00
|
|
|
docker compose run --rm minirootfs sh -c 'apk update && apk add'
|
2022-06-01 11:02:43 +09:00
|
|
|
cp -a src/bootfs/* cache -t dist
|
2022-06-01 01:07:38 +09:00
|
|
|
bin/overlay-gen dist/overlay.img
|
2022-06-01 11:02:43 +09:00
|
|
|
tar czf dist/localhost.apkovl.tar.gz --owner=0 --group=0 -C src/rootfs .
|
2022-05-30 22:11:18 +09:00
|
|
|
tar czf yama-armhf.tar.gz --owner=0 --group=0 -C dist .
|
2022-06-01 01:07:38 +09:00
|
|
|
bin/img-gen yama-armhf.img
|