12 lines
506 B
Bash
Executable file
12 lines
506 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Build extra_themes/hacktivism.css (darkly + hacktivism overrides) and set site default.
|
|
set -euo pipefail
|
|
LIVE="${HOME}/koopa-lemmy"
|
|
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
|
OVERRIDES="${ROOT}/configs/lemmy/extra_themes/hacktivism-overrides.css"
|
|
OUT="${LIVE}/extra_themes/hacktivism.css"
|
|
|
|
mkdir -p "${LIVE}/extra_themes"
|
|
podman exec koopa-lemmy-ui cat /app/dist/assets/css/themes/darkly.css > "${OUT}"
|
|
cat "${OVERRIDES}" >> "${OUT}"
|
|
echo "wrote ${OUT} ($(wc -l < "${OUT}") lines)"
|