From 3694051a951de612b4a08104f094cb758a967ed9 Mon Sep 17 00:00:00 2001 From: winchen Date: Tue, 28 Jul 2026 19:44:41 +0800 Subject: [PATCH] fix: validate all release assets --- deploy/jc-web-im-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/jc-web-im-update.sh b/deploy/jc-web-im-update.sh index 776283c..67522a9 100755 --- a/deploy/jc-web-im-update.sh +++ b/deploy/jc-web-im-update.sh @@ -54,7 +54,7 @@ while IFS= read -r asset; do echo "Missing referenced asset: $asset" >&2 exit 1 } -done < <(sed -nE 's/.*(css\/[^" ]+|js\/[^" ]+).*/\1/p' "$DIST_DIR/index.html") +done < <(grep -oE '(css|js)/[^"'"'"' ]+' "$DIST_DIR/index.html" | sort -u) find "$DIST_DIR/api" -type f -name '*.php' -print0 | xargs -0 -r -n1 php -l >/dev/null