Files
coze-studio/common/_templates/rspack-web/scm_build.sh
fanlv 890153324f feat: manually mirror opencoze's code from bytedance
Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
2025-07-20 17:36:12 +08:00

25 lines
386 B
Bash

#!/usr/bin/env bash
set -ex
# Switch cwd to the project folder
cd $(dirname "$0")
# Import the utilities functions
source ../../scripts/scm_base.sh
# Clean up the build directory
rm -rf output
rm -rf "${ROOT_DIR}"/output
# Prepare
prepare_environment
# Install the dependencies
install_project_deps
build_project
mkdir -p ${ROOT_DIR}/output
cp -r ./output/* ${ROOT_DIR}/output/