mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
1. devcontainer 创建时,更新并拉取子模块 2. 更改 MaaCore 下的 CMakeLists.txt,适应不知道哪里冒出来的 --no-allow-shlib-undefined 限制 * chore: devcontainer创建时更新子模块 * build: 尝试修复链接目标未定义的问题 * build: 将改动限于Linux
14 lines
378 B
Bash
14 lines
378 B
Bash
#!/bin/bash
|
|
WORKSPACE=$(pwd)
|
|
|
|
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
|