mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
MeoAssistantBuilder
Maa 的构建工具
使用方法
请先安装
.NET SDK 6.0.x
在解决方案根目录执行:
# PowerShell
./build.ps1 --target <TARGET>
# Command Prompt
./build.cmd --target <TARGET>
# Bash
./build.sh --target <TARGET>
TARGET 可选:
- DevBuild
- ReleaseMaa
- ReleaseMaaCore
- ReleaseMaaResource
关于各个 Target,请参考 ActionConfiguration.cs
关于 Target 之间的流程联系,请在安装 Nuke.GlobalTool 后再 Repo 的任意位置执行
nuke --plan
构建生成的文件将会在 ./artifacts 中
[可选] 安装 Nuke.GlobalTool
dotnet tool install Nuke.GlobalTool --global
使用
ZSH时,请将export PATH=$HOME/.dotnet/tools:$PATH添加到.zshrc
关于 Nuke,请参考 官方文档
注意事项
⚠ 每次执行时,会删除以下目录 ⚠
- ./artifacts
- ./x64/Release
- ./x64/RelWithDebInfo
- ./x64/CICD