ConsentOS — a privacy-first cookie consent management platform. Self-hosted, source-available alternative to OneTrust, Cookiebot, and CookieYes. Full standards coverage (IAB TCF v2.2, GPP v1, Google Consent Mode v2, GPC, Shopify Customer Privacy API), multi-tenant architecture with role-based access, configuration cascade (system → org → group → site → region), dark-pattern detection in the scanner, and a tamper-evident consent record audit trail. This is the initial public release. Prior development history is retained internally. See README.md for the feature list, architecture overview, and quick-start instructions. Licensed under the Elastic Licence 2.0 — self-host freely; do not resell as a managed service.
20 lines
695 B
Bash
Executable File
20 lines
695 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Ensure banner scripts exist in public/ before the admin-ui Vite build.
|
|
# If the banner hasn't been built yet, build it first.
|
|
set -euo pipefail
|
|
|
|
BANNER_DIR="../banner"
|
|
BANNER_DIST="$BANNER_DIR/dist"
|
|
|
|
if [ ! -f "$BANNER_DIST/consent-loader.js" ]; then
|
|
echo "[prebuild] Banner not built yet — building now..."
|
|
(cd "$BANNER_DIR" && npm ci && npm run build)
|
|
fi
|
|
|
|
echo "[prebuild] Copying banner scripts to public/"
|
|
mkdir -p public
|
|
cp "$BANNER_DIST/consent-loader.js" public/
|
|
cp "$BANNER_DIST/consent-bundle.js" public/
|
|
[ -f "$BANNER_DIST/consent-bundle.js.map" ] && cp "$BANNER_DIST/consent-bundle.js.map" public/
|
|
echo "[prebuild] Done — $(ls public/consent-loader.js)"
|