Skip to content

Commit 34a0538

Browse files
committed
docs: update README with cross-compilation details
1 parent ed9cac3 commit 34a0538

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,26 @@
99
- 🚀 支持 SSH 密钥或密码认证连接服务器
1010
- 📤 SFTP 上传发布产物
1111
- ▶️ 远程执行 systemd 启动命令
12+
- 🔧 **Native AOT 交叉编译** (macOS → Linux/Windows)
13+
14+
## Native AOT 交叉编译
15+
16+
插件支持从 macOS 交叉编译 Native AOT 应用到 Linux 和 Windows,无需安装 NuGet 包。
17+
18+
### 功能特点
19+
- 🐧 **Linux 目标**: 自动使用 Zig 作为链接器
20+
- 🪟 **Windows 目标**: 自动使用 LLD 链接器和 Windows SDK
21+
- 🛠️ **工具链管理**: 提供可视化安装向导和一键安装功能
22+
- 📦 **零配置**: 自动检测并配置所有必要的 MSBuild 参数
23+
24+
### 快速开始
25+
1. 打开侧边栏的 Dotnet Deploy
26+
2. 勾选 **Native AOT 编译**
27+
3. 选择目标运行时 (如 `linux-x64``win-x64`)
28+
4. 如果缺少工具链,会显示"配置向导"按钮
29+
5. 点击按钮按照指引安装所需工具 (Zig, LLD, xwin 等)
30+
31+
更多详细信息请参阅 [交叉编译配置指南](CROSS_COMPILE_SETUP.md)
1232

1333
## 安装
1434

0 commit comments

Comments
 (0)