mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
20 lines
513 B
Bash
20 lines
513 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
|
|
|
|
echo "===================="
|
|
cd "$WORKSPACE"/docs
|
|
echo "Installing node modules..."
|
|
npm install -g pnpm
|
|
pnpm install --frozen-lockfile
|