feat(env): 支持环境变量数组跨平台自动拼接

- 支持在 Lua 中配置数组格式的环境变量(如 PATH),由 Rust 按 OS 自动使用 `;` 或 `:` 拼接
- 保持普通字符串格式环境变量的直接覆盖逻辑
- 新增 `ShimConfig::to_command()` 用于快速创建 Command 对象
- 新增 error.rs 明确错误类型
- 新增 build.rs 优化编译
This commit is contained in:
2026-08-13 20:11:55 +08:00
parent 4aa619f07e
commit e52ba67d7e
7 changed files with 356 additions and 126 deletions

View File

@@ -7,6 +7,8 @@ use std::{
ptr::null_mut,
};
mod shims;
mod error;
use shims::Shim;
use winapi::{