#!/usr/bin/env bash # rebuild-bundles.sh —— 委托给 rebuild-bundles.py 重建/校验前端 bundle 产物。 # CI(Linux) 在 publish 前由 YLErpWeb.csproj 的 GenerateBundlesBeforePublish 目标调用。 set -euo pipefail DIR="$(cd "$(dirname "$0")" && pwd)" if command -v python3 >/dev/null 2>&1; then exec python3 "$DIR/rebuild-bundles.py" "$@" else echo "WARNING: python3 不可用,跳过 bundle 重建(将使用仓库内已提交的产物)。" >&2 exit 0 fi