Claude Sonnet 5.5
Site and docs for 0.9.0; drop template leftovers; scripts without hard-coded paths
794b22f Download scripts/build-engine-package.sh from EHS-Studio/dssl: direct link, hf CLI and curl.
- Browser
- Download file 1.52 kB
-
https://huggingface.co/EHS-Studio/dssl/resolve/main/scripts/build-engine-package.sh
- Command line
-
hf download hf://EHS-Studio/dssl/scripts/build-engine-package.sh
-
curl -L -o build-engine-package.sh https://huggingface.co/EHS-Studio/dssl/resolve/main/scripts/build-engine-package.sh
1.52 kB
| # Rebuild public/dssl-engine.zip and public/dssl-engine.tar.gz from the current engine + package texts. | |
| # Usage: bash scripts/build-engine-package.sh | |
| set -euo pipefail | |
| ROOT="$(cd "$(dirname "$0")/.." && pwd)" | |
| STAGE=$(mktemp -d) | |
| trap 'rm -rf "$STAGE"' EXIT | |
| mkdir -p "$STAGE/dssl-engine/dssl" "$STAGE/dssl-engine/styles" "$STAGE/dssl-engine/examples" "$STAGE/dssl-engine/cli" | |
| # every engine module, by glob: a new file under public/dssl/ can never be left out of the package | |
| cp "$ROOT"/public/dssl/*.js "$STAGE/dssl-engine/dssl/" | |
| cp "$ROOT/cli/dssl.mjs" "$STAGE/dssl-engine/cli/" | |
| cp "$ROOT/public/styles/tokens.dssl" "$STAGE/dssl-engine/styles/" | |
| cp "$ROOT/engine-package/USAGE.md" "$ROOT/engine-package/install.sh" "$STAGE/dssl-engine/" | |
| cp "$ROOT/engine-package/hello.dssl" "$STAGE/dssl-engine/examples/hello.dssl" | |
| cp "$ROOT/package/LICENSE" "$STAGE/dssl-engine/LICENSE" | |
| rm -f "$ROOT/public/dssl-engine.zip" | |
| python3 - "$STAGE" "$ROOT/public/dssl-engine.zip" <<'PY' | |
| import os, sys, zipfile | |
| stage, out = sys.argv[1], sys.argv[2] | |
| with zipfile.ZipFile(out, "w", zipfile.ZIP_DEFLATED) as z: | |
| for base, _dirs, files in os.walk(stage): | |
| for f in files: | |
| full = os.path.join(base, f) | |
| z.write(full, os.path.relpath(full, stage)) | |
| PY | |
| rm -f "$ROOT/public/dssl-engine.tar.gz" | |
| tar -czf "$ROOT/public/dssl-engine.tar.gz" -C "$STAGE" dssl-engine | |
| echo "built $ROOT/public/dssl-engine.tar.gz" | |
| echo "built $ROOT/public/dssl-engine.zip:" | |
| python3 -m zipfile -l "$ROOT/public/dssl-engine.zip" | |