17 lines
736 B
Shell
Executable file
17 lines
736 B
Shell
Executable file
#!/usr/bin/env bash
|
|
# Put the Live2D rig where the face host expects it.
|
|
#
|
|
# The rig is licensed assets and stays out of every repo (TASK-59) — so it is
|
|
# copied onto a device, never cloned with the source. Without this the host has
|
|
# an index.html referring to files that are not there, which is the "missing
|
|
# assets/face" every fresh checkout sees.
|
|
set -euo pipefail
|
|
SRC="${1:-$HOME/Downloads/blog/Live2dHistoire/live2d}"
|
|
DEST="${FACE_DIR:-$HOME/.souveraine/face}"
|
|
HERE="$(cd "$(dirname "$0")/.." && pwd)"
|
|
|
|
[ -d "$SRC" ] || { echo "no rig at $SRC — pass its path as \$1" >&2; exit 1; }
|
|
mkdir -p "$DEST"
|
|
cp -r "$SRC" "$DEST/"
|
|
cp "$HERE/assets/face/index.html" "$DEST/index.html"
|
|
echo "staged $(du -sh "$DEST" | cut -f1) at $DEST"
|