mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
1. devcontainer 创建时,更新并拉取子模块 2. 更改 MaaCore 下的 CMakeLists.txt,适应不知道哪里冒出来的 --no-allow-shlib-undefined 限制 * chore: devcontainer创建时更新子模块 * build: 尝试修复链接目标未定义的问题 * build: 将改动限于Linux
22 lines
535 B
Bash
22 lines
535 B
Bash
#!/bin/bash
|
|
WORKSPACE=$(pwd)
|
|
|
|
# conda activate maa
|
|
|
|
echo "===================="
|
|
cd "$WORKSPACE"
|
|
echo "Setting up git safe.directory..."
|
|
git config --global --add safe.directory "$WORKSPACE"
|
|
git submodule foreach --recursive 'git config --global --add safe.directory "$toplevel/$path"'
|
|
|
|
echo "===================="
|
|
cd "$WORKSPACE"
|
|
echo "Updating submodules..."
|
|
git submodule update --init --recursive
|
|
|
|
echo "===================="
|
|
cd "$WORKSPACE"/docs
|
|
echo "Installing node modules..."
|
|
npm install -g pnpm
|
|
pnpm install --frozen-lockfile
|