You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
380 B
Bash

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#!/usr/bin/env bash
# 在容器内执行:为各子项目 npm ci再调用仓库根脚本路径挂载为 /work
set -euo pipefail
cd /work
for d in call-client broadcast-client; do
if [[ ! -f "$d/package.json" ]]; then
echo "错误: 缺少 /work/$d/package.json" >&2
exit 1
fi
(cd "$d" && npm ci)
done
exec bash /work/scripts/build-linux-deb-all.sh "$@"