Initial BitNet s9pk package with SSH access

This commit is contained in:
GERTY
2026-05-12 22:31:18 +00:00
commit 6e8a8f5b59
10 changed files with 429 additions and 0 deletions

29
Makefile Normal file
View File

@@ -0,0 +1,29 @@
# BitNet s9pk Makefile
PKG_ID := bitnet
PKG_VERSION := 1.0.0
TS_FILES := $(shell find . -name '*.ts' 2>/dev/null)
.PHONY: all clean install
# Default image
all: $(PKG_ID).s9pk
install: $(PKG_ID).s9pk
start-cli package install $(PKG_ID).s9pk
clean:
rm -f $(PKG_ID).s9pk
rm -f image.tar
# Build Docker image using remote Docker on MacBook
image.tar: Dockerfile docker_entrypoint.sh
@echo "Building Docker image on remote Docker (macbook)..."
docker -H ssh://macbook build --platform linux/amd64 --tag start9/$(PKG_ID)/main:$(PKG_VERSION) -o type=docker,dest=image.tar .
# Pack the s9pk
$(PKG_ID).s9pk: manifest.yaml image.tar instructions.md scripts/*.sh
@echo "Packing s9pk..."
start-cli s9pk pack \
--arch aarch64 \
--arch x86_64 \
.