项目文件夹

文件
wehub-resource-sync aa1a5d5763
CI / Release hygiene (push) Has been cancelled
CI / Python targeted tests (push) Has been cancelled
CI / Frontend build (push) Has been cancelled
Pages / Build and deploy public pages (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:18:17 +08:00

22 行
659 B
Bash
可执行文件

#!/bin/bash
export NODE_OPTIONS="--max-old-space-size=4096"
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
PROJECT_DIR="$(dirname "${SCRIPT_DIR}")"
cd ${PROJECT_DIR}
# Due to the complexity of the frontend build process (especially in macOS),
# we leave the automation of the frontend build process to the future work.
# NOW, we just provide a simple script to rebuild the frontend manually.
# Please run the script after you have made changes to the frontend code.
rm -r packages/agentsociety/agentsociety/_dist || true
cd frontend
npm ci
npm run build
cd ..
cp -r frontend/dist/ packages/agentsociety/agentsociety/_dist/