mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
* chore: cleanup devcontainer.json * chore: 配置devcontainer环境 * build: 更新conda配置 * chore: 更新pnpm包的安装允许列表 --------- Co-authored-by: Lucien Shaw <myxlc55@outlook.com>
22 lines
627 B
Bash
22 lines
627 B
Bash
#!/bin/bash
|
|
WORKSPACE=$(pwd)
|
|
|
|
# conda activate maa
|
|
|
|
echo "===================="
|
|
echo "Setting up git safe.directory for $WORKSPACE and its submodules..."
|
|
cd "$WORKSPACE"
|
|
git config --global --add safe.directory "$WORKSPACE"
|
|
git submodule foreach --recursive 'git config --global --add safe.directory "$toplevel/$path"'
|
|
|
|
echo "===================="
|
|
cd "$WORKSPACE"
|
|
echo "Installing dependencies for python..."
|
|
# pip install -r tools/.../requirements.txt
|
|
# pip install -r tools/.../requirements-dev.txt
|
|
|
|
echo "===================="
|
|
echo "Installing dependencies for nodejs..."
|
|
cd "$WORKSPACE"/docs
|
|
pnpm install --frozen-lockfile
|