mirror of
https://github.com/kou029w/megabit-os.git
synced 2025-01-18 16:07:58 +00:00
18 lines
567 B
Bash
Executable file
18 lines
567 B
Bash
Executable file
#!/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'
|
|
ssh-keygen -A -f apkovl
|
|
cp -a usercfg.txt cache -t dist
|
|
gzip -cdk overlay.img.gz > dist/overlay.img
|
|
docker-compose run --rm builder
|
|
tar czf dist/localhost.apkovl.tar.gz --owner=0 --group=0 -C apkovl .
|
|
tar czf megabit-armhf.tar.gz --owner=0 --group=0 -C dist .
|