2020-07-21 01:06:43 +09:00
|
|
|
#!/bin/sh
|
|
|
|
# ビルド
|
|
|
|
# Usage: bin/build
|
|
|
|
# Required: docker-compose
|
|
|
|
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
|
|
|
|
docker-compose run --rm minirootfs sh -c 'apk update && apk add'
|
|
|
|
ssh-keygen -A -f apkovl
|
2021-07-22 23:10:06 +09:00
|
|
|
cp -a usercfg.txt cache -t dist
|
2021-07-24 22:49:45 +09:00
|
|
|
gzip -cdk overlay.img.gz > dist/overlay.img
|
|
|
|
docker-compose run --rm builder
|
2020-07-21 01:06:43 +09:00
|
|
|
tar czf dist/localhost.apkovl.tar.gz --owner=0 --group=0 -C apkovl .
|
2021-09-04 20:47:11 +09:00
|
|
|
tar czf megabit-armhf.tar.gz --owner=0 --group=0 -C dist .
|