feat: package docker deployment and publish flow

This commit is contained in:
theshy
2026-04-22 16:20:03 +08:00
parent 055474360e
commit 2146687dc6
178 changed files with 24318 additions and 20855 deletions

View File

@ -0,0 +1,28 @@
#!/usr/bin/env sh
set -eu
mkdir -p config runtime/codex data/workspace/stage data/workspace/session data/workspace/backup
if [ ! -f .env ]; then
cp .env.example .env
echo "created .env from .env.example"
fi
if [ ! -f config/settings.json ]; then
cp config/settings.docker.example.json config/settings.json
echo "created config/settings.json from config/settings.docker.example.json"
fi
if [ ! -f runtime/cookies.json ]; then
cp runtime/cookies.example.json runtime/cookies.json
echo "created runtime/cookies.json placeholder"
fi
if [ ! -f runtime/upload_config.json ]; then
cp runtime/upload_config.example.json runtime/upload_config.json
echo "created runtime/upload_config.json placeholder"
fi
if [ ! -x runtime/biliup ]; then
echo "warning: runtime/biliup is missing or not executable; publish will fail until you provide it" >&2
fi